Guides you through the process of creating, populating,
and
configuring the ACCT project.
Note: This topic applies to Windows environments only.
Create the ACCT project
- In Eclipse on the
Application Explorer view, expand the
Enterprise Developer system.
- Right-click
Enterprise Development Projects and select
New COBOL Project > Mainframe COBOL Project from the context menu.
- Type
ACCT into the
Project Name field.
The default location for storing new projects is the workspace you specified when you started Eclipse. If you wanted to change
this, you could uncheck
Use default location and specify a different location; however, you use the default location in this tutorial.
- Click
Finish.
The ACCT project is created and appears in the
Application Explorer view. By default, its COBOL dialect is
Enterprise COBOL for z/OS and the character set is
EBCDIC.
Import ACCT Demonstration Files
- In Eclipse, select your project in the
Application Explorer view.
- Click
.
- In the
Import dialog box, expand
General, select
File System, and then click
Next.
- Click the
Browse button that corresponds to the
From directory field, and navigate to the demonstration project folder, which by default is
%PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCT.
- Click
Select Folder.
- In the left panel, expand the
ACCT folder.
- Check the boxes next to the following folders:
- Click
Finish.
This imports all required files into your project, creates the
.dll,
.idy and
.mod files in the
loadlib directory, generates a
.cpy file from the BMS (this is stored in the
cpy folder), and attempts to build the project; however, the build fails because the path to the generated copybook must be included
in the project properties, which you set next.
Create the ACCT build configuration
A build configuration defines build settings, preprocessor selection, and path specifications.
- In the
Application Explorer view, right-click the
ACCT project name; then select
Properties from the context menu.
- Under
Micro Focus, click
Build Configurations and then click
Manage Configurations.
- Click the pencil icon to rename the current build configuration.
- Replace
New Configuration with
ACCT Build.
- Click
Finish.
- In the
Properties window, expand
Build Configurations; then click
Link.
- In the
Output Path text field, enter
loadlib.
- Ensure
Target Type is set to
All Native Library Files.
- Click
Apply.
Do not close the
Properties window yet.
Set ACCT project properties
- Still in the
Properties dialog box, expand
Micro Focus; then click
Build Path.
- On the
Dependency Paths tab, select
COBOL Copybook Paths from the
Type drop-down list.
- Check
ACCT/cpy, which is the path to the imported copybooks.
- In the left-hand pane, expand
.
- Click
BMS.
- In the right pane, scroll down and locate the
DSECT Output Path field, and type
.\cpy into the field.
- Type
.\loadlib into the
Binary Output Path field.
- Click
Apply.
- Under
Project Settings again, expand
COBOL; then select
CICS Preprocessor.
- In the right pane, check
Use CICS Preprocessor.
- Click
Apply and Close.
This should trigger a build, which should compile cleanly.