To import the files from the CICS demonstration program into your project:
- In the IDE, select your project in the Team Developer Tree view.
- Click File > Import...on the main menu
- In the Import dialog, expand General, click File System and then click Next.
- 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.
- Click OK.
- In the left hand panel, expand the ACCT folder.
- Check the boxes next to the following folders:
- 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.
- Right-click the project name and select Properties.
- Expand Micro Focus; then click Build Path.
- On the Dependency Paths tab, select COBOL Copybook Paths from the drop-down list and check the path to the imported copybooks.
- 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.
- 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.
- Click OK to set the missing directives.
This triggers a new build and the project now compiles without any errors.