Set up the ACCT Project

Guides you through the process of creating, populating, and configuring the ACCT project.

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 all folders, which include:
    • bms
    • cbl
    • cpy
    • data
    • repos
    • system
  8. 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.

  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 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, click COBOL.
  10. In the right pane, set the COBOL dialect field to Micro Focus.
  11. Scroll down if necessary, and then click Apply.
  12. In the left pane, expand the COBOL node, and then click CICS Preprocessor.
  13. In the right pane, check Use CICS Preprocessor.
  14. Click Apply and Close.

    This triggers a build, which should now compile cleanly.

Start the HACloud session

Ensure that the Micro Focus HACloud service property is set to start up automatically. For instructions on how to do this, see Starting the HACloud Session Server.

To start the HACloud session server on Windows:
  1. Ensure that the installed Java is added to the PATH environment variable.
  2. Start the Enterprise Server region that runs the application you want to connect to.
  3. Start either the 32-bit or 64-bit Enterprise Developer command prompt or Enterprise Server command prompt - this must match the working mode, 32 or 64-bit, of the JRE you have installed.
  4. Type startsessionserver at the command prompt, and press Enter.

    Check the console for the messages that the Micro Focus HACloud Session Server has started.

To start the HACloud session server on UNIX:
  1. Ensure that the installed Java is added to the PATH environment variable.
  2. Start the Enterprise Server region that runs the application you want to connect to.
  3. Open a terminal and set up the COBOL environment in it.
  4. Run the following to start the session server:
    startsessionserver.sh

    Check the terminal for the messages that the Micro Focus HACloud Session Server has started.