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
- In Visual Studio, click
.
- In the
New Project dialog box, expand
.
- Click
Enterprise Server, and then click
Native.
- In the center pane, select
Mainframe Subsystem Application.
- Specify a name for your project –
ACCTCLNT.
- In the
Location field, type the name of your parent project directory –
c:\tutorials\CICS.
- Uncheck
Create directory for solution and click
OK.
This creates a subdirectory,
ACCTCLNT, under your parent project directory.
Import the ACCTCLNT demonstration files
- 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.
- 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
- In Visual Studio, right-click your project in the
Solution Explorer, and select
Add >
Existing Item.
- 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.
- Again, right-click your project in the
Solution Explorer and select
Add >
Existing Item.
- Browse to the
c:\tutorials\CICS\ACCTCLNT\bms folder.
- 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
-
- Click the
Dependency Paths tab.
- Ensure
Type is set to
COBOL Copybook Paths.
- Click inside the text box in the center pane; then press
Ctrl + Insert.
- Type
.\cpy; then press
Enter.
- Set BMS properties
-
- Click the
BMS tab.
- In the
Copybook Output Path field, type
.\cpy.
- In the
Load Module Output Path field, type
.\loadlib.
- Set COBOL properties
-
- Click the
COBOL tab:
- Ensure
Platform target is set to
x86.
- Set
Character set to
ASCII.
- Ensure that the
Source Format field is set to
Fixed.
- Ensure
Compile for debugging is checked.
- Check
EXEC CICS.
- Replace the contents of the
Output path field with
.\loadlib.
- Set debug properties
-
- Click the
Debug tab
- 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.