Guides you through all of the project-centric steps of this tutorial, including creating the ACCTCLNT project, importing the
ACCTCLNT demonstration files,
and
configuring the project in
Eclipse.
Create the ACCTCLNT project
- In the Eclipse
Team Developer Perspective,
Application Explorer view, right-click
Enterprise Development Projects and select
New COBOL Project > Mainframe COBOL Project.
This starts the
New Mainframe COBOL Project wizard.
- Type
ACCTCLNT into the
Project Name field.
- Click
Finish.
The ACCTCLNT project appears in the
Application Explorer view. By default, its COBOL dialect is
Enterprise COBOL for z/OS and the character set is
EBCDIC.
Import the ACCTCLNT demonstration files
- In Eclipse, select your project in the
Application Explorer view.
- Click
File > Import on the main menu.
- In the
Import dialog box, expand
General, click
File System and then click
Next.
- Click
Browse, and then navigate to the ACCTCLNT sample files, located by default in the
$COBDIR/demo/cics/ACCTCLNT directory.
- Click
OK.
- In the left panel, expand the
ACCTCLNT folder.
- Check the boxes next to all of the listed folders, which include:
- bms
- cbl
- cpy
- data
- repos
- system
- Click
Finish.
This imports all files in the selected directories into your project, and then attempts to build the project.
Note: The project build fails at this point because you have not set any project properties. You do this in the next phase of this
tutorial.
Set project properties
Here, you specify the properties for the ACCTCLNT project, which include path specifications, preprocessor selection, and
debug configuration.
- Open the properties page
-
- In the
Application Explorer view, right-click the
ACCTCLNT project; then select
Properties.
- Create a build configuration
-
- In the left pane, expand
Micro Focus.
- Click
Build Configurations.
- In the right pane, click
Manage Configurations.
- Click the pencil icon to rename the current build configuration.
- Replace
New Configuration with
ACCTCLNT Build.
- Click
Finish.
- Specify build paths and targets
-
- In the left pane, expand
Build Configurations.
- Click the
Link entry under
Build Configurations.
- In the right pane, replace the
New Configuration.bin value in the
Output Path with
loadlib.
- Ensure
Target Type is set to
All Native Library Files.
- Click
Apply.
- In the left pane, click
Build Path.
- In the right pane, click the
Dependency Paths tab.
- Check
ACCTCLNT and
ACCTCLNT/cpy.
- Specify project settings
-
- In the left pane, expand
Project Settings > COBOL.
- Click the
CICS Preprocessor entry under
COBOL.
- In the right pane, check
Use CICS Preprocessor.
- Click
Apply.
- In the left pane, click the
BMS entry under
Project Settings.
- Scroll down to the
Outputs section.
- Type
cpy into the
DSECT Output text field.
- Type
loadlib into the
Binary Output text field.
- Click
Apply and Close.
At this point, Eclipse automatically rebuilds the project, this time without errors.