Set up the ACCT Project

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

  1. In Eclipse on the Application Explorer view, expand the Enterprise Developer system.
  2. Right-click Enterprise Development Projects and select New COBOL Project > Mainframe COBOL Project from the context menu.
  3. 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.

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

  1. In Eclipse, select your project in the Application Explorer view.
  2. Click File > Import.
  3. In the Import dialog box, expand General, select File System, and then click Next.
  4. 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.
  5. Click Select Folder.
  6. In the left panel, expand the ACCT folder.
  7. Check the boxes next to the following folders:
    • bms
    • cbl
    • cpy
  8. 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.

  1. In the Application Explorer view, right-click the ACCT project name; then select Properties from the context menu.
  2. Under Micro Focus, click Build Configurations and then click Manage Configurations.
  3. Click the pencil icon to rename the current build configuration.
  4. Replace New Configuration with ACCT Build.
  5. Click Finish.
  6. In the Properties window, expand Build Configurations; then click Link.
  7. In the Output Path text field, enter loadlib.
  8. Ensure Target Type is set to All Native Library Files.
  9. Click Apply.

    Do not close the Properties window yet.

Set ACCT project properties

  1. Still in the Properties dialog box, expand Micro Focus; then click Build Path.
  2. On the Dependency Paths tab, select COBOL Copybook Paths from the Type drop-down list.
  3. Check ACCT/cpy, which is the path to the imported copybooks.
  4. In the left-hand pane, expand Micro Focus > Project Settings.
  5. Click BMS.
  6. In the right pane, scroll down and locate the DSECT Output Path field, and type .\cpy into the field.
  7. Type .\loadlib into the Binary Output Path field.
  8. Click Apply.
  9. Under Project Settings again, expand COBOL; then select CICS Preprocessor.
  10. In the right pane, check Use CICS Preprocessor.
  11. Click Apply and Close.

    This should trigger a build, which should compile cleanly.