Set up the ACCTCLNT Project

Guides you through all of the project-centric steps of this tutorial, including creating the ACCTCLNT project, importing the ACCTCLNT demonstration files, configuring, and building the project in Visual Studio.

Create the ACCTCLNT 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. Specify a name for your project – ACCTCLNT.
  6. In the Location field, type the name of your parent project directory – c:\tutorials\CICS.
  7. Uncheck Create directory for solution and click OK.

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

Import the ACCTCLNT demonstration files

  1. Using Windows File Explorer, browse to the ACCTCLNT sample files, located by default in the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCTCLNT directory.
  2. Copy all subfolders of ACCTCLNT and their content, and paste all into your project folder, c:\tutorials\CICS\ACCTWEB. The names of these subfolders are:
    • bms
    • cbl
    • cpy
    • data
    • html
    • repos
    • system
  3. In Visual Studio, right-click your project in the Solution Explorer, and select Add > Existing Item.
  4. Browse to the c:\tutorials\CICS\ACCTCLNT\cbl folder, select all items, and then click Add.
    Note: If the Preview Changes - Directive Determination dialog box appears, optionally check Don't ask again, and then click Apply.
  5. Again, right-click your project in the Solution Explorer and select Add > Existing Item.
  6. Browse to the c:\tutorials\CICS\ACCTCLNT\bms folder.
  7. Select the .bms file, and then click Add.
    Note: The BMS map needs to be included in your project to ensure that the project builds properly. There is no need to edit the BMS file for the purposes of this tutorial.

Set project properties

Here, you specify the properties for the ACCTCLNT project, which include path specifications, preprocessor selection, and debug configuration.

Open the properties page
  • In the Solution Explorer, double-click the Properties folder.
Set dependency paths
  1. Click the Dependency Paths tab.
  2. Ensure Type is set to COBOL Copybook Paths.
  3. Click inside the text box in the center pane; then press Ctrl + Insert.
  4. Type .\cpy; then press Enter.
Set BMS properties
  1. Click the BMS tab.
  2. In the Copybook Output Path field, type .\cpy.
  3. In the Load Module Output Path field, type .\loadlib.
Set COBOL properties
  1. Click the COBOL tab:
  2. Ensure Platform target is set to x86.
  3. Set Character set to ASCII.
  4. Ensure that the Source Format field is set to Fixed.
  5. Ensure Compile for debugging is checked.
  6. Check EXEC CICS.
  7. Replace the contents of the Output path field with .\loadlib.
Set debug properties
  1. Click the Debug tab
  2. Ensure that the Launch field is set to CICS.
Save properties
  • From the main menu, click File > Save All.

Build the project

  • In the Solution Explorer, right-click the project, and select Build from the context menu.