Set up the ACCTCLNT Project

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

  1. 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.

  2. Type ACCTCLNT into the Project Name field.
  3. 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

  1. In Eclipse, select your project in the Application Explorer view.
  2. Click File > Import on the main menu.
  3. In the Import dialog box, expand General, click File System and then click Next.
  4. Click Browse, and then navigate to the ACCTCLNT sample files, located by default in the $COBDIR/demo/cics/ACCTCLNT directory.
  5. Click OK.
  6. In the left panel, expand the ACCTCLNT folder.
  7. Check the boxes next to all of the listed folders, which include:
    • bms
    • cbl
    • cpy
    • data
    • repos
    • system
  8. 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
  1. In the left pane, expand Micro Focus.
  2. Click Build Configurations.
  3. In the right pane, click Manage Configurations.
  4. Click the pencil icon to rename the current build configuration.
  5. Replace New Configuration with ACCTCLNT Build.
  6. Click Finish.
Specify build paths and targets
  1. In the left pane, expand Build Configurations.
  2. Click the Link entry under Build Configurations.
  3. In the right pane, replace the New Configuration.bin value in the Output Path with loadlib.
  4. Ensure Target Type is set to All Native Library Files.
  5. Click Apply.
  6. In the left pane, click Build Path.
  7. In the right pane, click the Dependency Paths tab.
  8. Check ACCTCLNT and ACCTCLNT/cpy.
Specify project settings
  1. In the left pane, expand Project Settings > COBOL.
  2. Click the CICS Preprocessor entry under COBOL.
  3. In the right pane, check Use CICS Preprocessor.
  4. Click Apply.
  5. In the left pane, click the BMS entry under Project Settings.
  6. Scroll down to the Outputs section.
  7. Type cpy into the DSECT Output text field.
  8. Type loadlib into the Binary Output text field.
  9. Click Apply and Close.

At this point, Eclipse automatically rebuilds the project, this time without errors.