Set up the ACCT Project

Guides you through the process of creating, populating, configuring, and building the ACCT project.
Note: As an alternative to manually creating and configuring an ACCT project, you can copy the completed ACCT Visual Studio solution provided with Enterprise Developer. See the Alternative Steps section later in this topic for details.

Create the ACCT 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 Mainframe Subsystem Application.
  5. In the Name field, type ACCT.
  6. In the Location field, type the name of your parent project directory – c:\tutorials\CICS.
  7. Uncheck Create directory for solution.
  8. Click OK.

    This creates a subdirectory, ACCT, under your parent project directory.

Import ACCT Demonstration Files

  1. At a command prompt or using Explorer, change to the location of the ACCT sample, which by default is %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCT.
  2. Copy all subdirectories from this location, and paste them into your project directory, c:\tutorials\CICS\ACCT.
  3. In Visual Studio, right-click your project in the Solution Explorer and select Add > Existing Item.
  4. Browse to the c:\tutorials\CICS\ACCT\cbl folder, select all items, then click Add.
  5. If the Preview Changes - Directive Determination dialog box appears, check Don't ask again; then click Apply.
  6. Again, right-click your project in the Solution Explorer and select Add > Existing Item.
  7. Browse to the c:\tutorials\CICS\ACCT\bms folder.
  8. Select the acctset.bms file; then click Add.
    Note: The BMS map needs to be included in your project, so that you can compile it easily. There is no need to edit the BMS file for the purposes of this tutorial.

Set ACCT project properties

  1. In the Solution Explorer, double-click the Properties folder.
  2. On the Dependency Paths tab, ensure the path type is set to COBOL Copybook Paths.
  3. Double-click in the top left corner of the entry box to add a text field; then single-click the field to select it.
  4. Type .\cpy into the text field.
  5. Click the Check Entries icon Check Entries button to save the entry.
  6. On the BMS tab:
    1. Ensure DSECT and MAP are set to Yes.
    2. In the Copybook Output Path field, type .\cpy.
    3. In the Load Module Output Path field, type .\loadlib.
  7. On the COBOL tab:
    1. Ensure Platform Target is set to x86.
    2. Set Character set to ASCII.
    3. From the Source Format drop-down list, choose Fixed.
    4. Ensure Compile for debugging is checked.
    5. Check EXEC CICS.
    6. Replace the contents of the Output path field with .\loadlib.
  8. On the Debug tab, ensure that the Launch drop-down list is set to CICS.
  9. Click File > Save All.

Alternative Steps

If you are already familiar with creating projects and setting properties, you can skip the preceding steps and perform the following steps to copy a completed version of the ACCT solution to your parent project directory.

  1. In Windows File Explorer or at a command prompt, change to the following directory:

    %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCT.

  2. Copy the entire ACCT subdirectory to the c:\tutorials\CICS parent project directory.

Build the ACCT application

  • In the Solution Explorer, right-click the ACCT solution; then select Build from the context menu.

    This generates run-time components in the loadlib project directory.