Set up the ACCTWEB Project

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

Create the ACCTWEB 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 – ACCTWEB.
  6. In the Location field, type the name of your working directory – c:\tutorials\CICS\ACCTWEB.
  7. Ensure that Create directory for solution is unchecked.
  8. Click OK.

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

Import the ACCTWEB Demonstration Application

  1. Using Windows File Explorer, browse to the ACCTWEB sample files, located by default in the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCTWEB folder.
  2. Copy all subfolders of ACCTWEB 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\ACCTWEB\cbl folder, select all items, then click Add.
  5. Again, right-click your project in the Solution Explorer and select Add > Existing Item.
  6. Browse to the c:\tutorials\CICS\ACCTWEB\bms folder.
  7. Select the .bms file; 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

Open project properties
  • In the 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, and 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 that Platform Target is set to x86.
  3. Set Character set to ASCII.
  4. Ensure that Source Format is set to Fixed.
  5. Ensure Compile for debugging is checked.
  6. Check EXEC CICS.
  7. Type .\loadlib into the Output path field.
Set debug properties
  1. On the Debug tab, ensure that Launch is set to CICS.
  2. Click File > Save All to save all property settings.

Build the ACCTWEB project

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

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