Import Files from the Demonstration Program

In this step, you import the files from the AACT demonstration transaction into your project, and copy the resource definition file to the project.

  1. In Eclipse, right-click the AACT project in COBOL Explorer and click Import > Import.
  2. Expand General, click File System, and click Next.
  3. Browse to and select the directory that stores the AACT sample files, %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\Assembler\Classic\AACT, and click OK.

    This displays the list of the files available in the in the AACT directory.

  4. Select all of the following files:
    • aactrec.cpy
    • aactset.bms
    • aactset.cpy
    • aactset.mac
    • aactrec.mac
    • asmacct0.mlc
    • asmacct1.mlc
    • asmacct2.mlc
    • asmacct3.mlc
    • asmacct4.mlc
    • asmacctm.mlc
  5. Click Finish.

    This action adds the selected files to the project, and arranges them in virtual folders according to their file type in COBOL Explorer. If Build Automatically is enabled in Eclipse, adding the files also triggers a full build of the project. The build fails because you need to set some project properties to specify that the Assembler programs use CICS.

  6. Right-click the AACT project in COBOL Explorer, and click Properties.
  7. In the Properties for AACT dialog box, expand Micro Focus > Project Settings > Assembler Compiler and click the CICS Preprocessor tab.
  8. Check Use CICS Preprocessor, and click Apply and then click OK.

    This triggers a rebuild of the project, and this time it is successful.

  9. In COBOL Explorer, right-click the system subfolder of the AACT project, and click Import > Import.
  10. Expand General, click File System, and click Next.
  11. Browse to and select the system subfolder in the location of the AACT sample, %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\Assembler\Classic\AACT\system, and click OK.
  12. Select the dfhdrdat file and click Finish.

    This adds the file to the system subfolder of your project. The file contains the resource definitions you need to create an enterprise server to run the AACT transaction. You now need to upgrade the file.

  13. Open a COBOL command environment by choosing Start > All Programs > Micro Focus Enterprise Developer > Tools > Enterprise Developer Command Prompt (32-bit).
  14. Enter the following to upgrade the resource definition file:
    caspcupg /dp=c:\tutorials\aact\system