Import files from the demonstration program

To import the files from the CICS demonstration program into your project:

  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 Browse and navigate to the demonstration project folder, which by default is %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCT.
  5. Click OK.
  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.

  9. Right-click the ACCT project name; then select Properties from the context menu.
  10. Expand Micro Focus; then click Build Path.
  11. On the Dependency Paths tab, select COBOL Copybook Paths from the Type drop-down list.
  12. Check ACCT/cpy, which is the path to the imported copybooks.
  13. Click OK.
    Note: If a Delete User Files prompt appears, click No.

    By default, Eclipse builds the project automatically every time you make a change.