In this step, you import the files from the AACT demonstration transaction into your project, and copy the resource definition file to the project.
- In Eclipse, right-click the
AACT project in COBOL Explorer and click
Import >
Import.
- Expand
General, click
File System, and click
Next.
- 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.
- 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
- 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.
- Right-click the
AACT project in COBOL Explorer, and click
Properties.
- In the
Properties for AACT dialog box, expand
Micro Focus > Project Settings > Assembler Compiler and click the
CICS Preprocessor tab.
- Check
Use CICS Preprocessor, and click
Apply and then click
OK.
This triggers a rebuild of the project, and this time it is successful.
- In COBOL Explorer, right-click the
system subfolder of the
AACT project, and click
Import >
Import.
- Expand
General, click
File System, and click
Next.
- 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.
- 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.
- Open a COBOL command environment by choosing
Start > All Programs > Micro Focus Enterprise Developer > Tools > Enterprise Developer Command Prompt (32-bit).
- Enter the following to upgrade the resource definition file:
caspcupg /dp=c:\tutorials\aact\system