Set up the ACCTWEB Project

Guides you through all of the project-centric steps of this tutorial, including creating the ACCTWEB project, importing the ACCTWEB demonstration files, and configuring the project in Eclipse

Create the ACCTWEB project

  1. From the Eclipse Application Explorer view, right-click Enterprise Development Projects; then select New COBOL Project > Mainframe COBOL Project.

    This starts the New Mainframe COBOL Project wizard.

  2. Type ACCTWEB into the Project Name field.
  3. Click Finish.

    The ACCTWEB project appears in the Application Explorer view. By default, the COBOL dialect is Enterprise COBOL for z/OS and the character set is EBCDIC.

Import the ACCTWEB Demonstration Application

  1. In Eclipse, select your project in the Application Explorer view.
  2. From the main menu, click File > Import.
  3. In the Import dialog box, expand General, click File System and then click Next.
  4. Click the Browse button that corresponds to the From directory field, and then navigate to the ACCTWEB sample files, located by default in the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCTWEB directory.
  5. Click OK.
  6. In the left panel, expand the ACCTWEB folder.
  7. Check the boxes next to all of the listed folders, which include:
    • bms
    • cbl
    • cpy
    • data
    • html
    • repos
    • system
  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, and builds the project.

    Note: The project build fails at this point because you have not set any project properties. You do this next.

Set project properties

Open the Project Properties page
  • In the Application Explorer view, right-click the ACCTWEB 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 ACCTWEB 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 ACCTWEB and ACCTWEB/cpy.
Specify the CICS preprocessor
  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 and Close to save all property settings.

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