Set Up the AACT Project

Walks you through the steps required to create the AACT project in Visual Studio,, import the AACT demonstration files, install the resource definition file, and build the project.

Create the AACT project

  1. In Visual Studio, click File > New > Project.
  2. In the New Project dialog box, expand Installed > COBOL.
  3. Click Enterprise Server, and then click Native.
  4. In the center pane, select the Mainframe Subsystem Application template.
  5. Complete the remaining fields as follows:
    Field Value
    Name AACT
    Location c:\tutorials\ASM
  6. Uncheck Create directory for solution.
  7. Click OK.

    Visual Studio creates the project in the c:\tutorials\ASM\AACT directory, and opens the Solution Explorer showing the AACT solution and project.

Import the AACT demonstration files

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 the Visual Studio Solution Explorer, right-click the AACT project, and select Add > Existing Item from the context menu.
  2. Browse to the AACT sample files, located in the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\Assembler\Classic\AACT directory.
  3. On the Add Existing Item dialog box, click the drop-down list associated with the File Name field, and select All Files (*.*).
  4. Select all of the following files, and then click Add to add them to the project:
    • AACTREC.cpy
    • AACTSET.bms
    • AACTSET.cpy
    • aactset.mac
    • aactrec.mac
    • asmacct0.mlc
    • asmacct1.mlc
    • asmacct2.mlc
    • asmacct3.mlc
    • asmacct4.mlc
    • asmacctm.mlc

Install the dfhdrdat resource definition file

  1. At a command prompt or using Windows File Explorer, create a subdirectory under c:\tutorial\ASM\AACT named SYSTEM.
  2. Copy the dfhdrdat file from the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\Assembler\Classic\AACT\SYSTEM directory to the c:\tutorials\ASM\AACT\SYSTEM subdirectory that you just created. This is the file that contains the resource definitions you need to create an enterprise server to run the AACT transaction.

Configure and build the AACT project

  1. Double-click the Properties folder AACT project, then click the COBOL tab in the properties.
  2. Enter .\loadlib in the Output path field. This will be the location of the build artefacts.
  3. Click File > Save All.
  4. Right-click the AACT project name in Solution Explorer; then select Build.

    You can watch the progress of this process in the Output window.

  5. When the build is complete, save the project.