Import files from the demonstration program

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

  1. In the IDE, select your project in the Team Developer Tree view.
  2. Click File > Import...on the main menu
  3. In the Import dialog, expand General, click File System and then click Next.
  4. Click Browse and navigate to the folder of the demonstration project in the install location of the samples. On Windows Vista and Windows 7, this is %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCT.
    Note: On older versions of Windows the samples might be installed in a different folder, such as for Windows XP, C:\Documents and Settings\All Users\Documents\Micro Focus\Enterprise Developer\Samples.
  5. Click OK.
  6. In the left hand 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 project name and select Properties.
  10. Expand Micro Focus; then click Build Path.
  11. On the Dependency Paths tab, select COBOL Copybook Paths from the drop-down list and check the path to the imported copybooks.
  12. 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. If there are still some build errors in the COBOL programs, this is because we have to indicate that these files include EXEC CICS statements.

  13. To scan the project files and set missing Compiler directives, right-click the project in the Team Developer Tree view and click Determine Directives.

    This shows the Directives Determination Result dialog box that shows that the COBOL programs in your project use a CICS preprocessor.

  14. Click OK to set the missing directives.

    This triggers a new build and the project now compiles without any errors.