Guides you through the process of creating, populating,
and
configuring the ACCT project.
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 all folders, which include:
- bms
- cbl
- cpy
- data
- repos
- system
- Click
Finish.
This imports all required files into your project and attempts to build the project; however, the build fails because you
have not yet defined a build configuration for this application.
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 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, click
COBOL.
- In the right pane, set the
COBOL dialect field to
Micro Focus.
- Scroll down if necessary, and then click
Apply.
- In the left pane, expand the
COBOL node, and then click
CICS Preprocessor.
- In the right pane, check
Use CICS Preprocessor.
- Click
Apply and Close.
This triggers a build, which should now compile cleanly.