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
- 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 –
ACCTWEB.
- In the
Location field, type the name of your working directory –
c:\tutorials\CICS\ACCTWEB.
- Ensure that
Create directory for solution is unchecked.
- Click
OK.
This creates a subdirectory,
ACCTWEB, under your parent project directory.
Import the ACCTWEB Demonstration Application
- 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.
- 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
- In Visual Studio, right-click your project in the
Solution Explorer and select
Add >
Existing Item.
- Browse to the
c:\tutorials\CICS\ACCTWEB\cbl folder, select all items, then click
Add.
- Again, right-click your project in the
Solution Explorer and select
Add >
Existing Item.
- Browse to the
c:\tutorials\CICS\ACCTWEB\bms folder.
- 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
-
- 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, and 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 that
Platform Target is set to
x86.
- Set
Character set to
ASCII.
- Ensure that
Source Format is set to
Fixed.
- Ensure
Compile for debugging is checked.
- Check
EXEC CICS.
- Type
.\loadlib into the
Output path field.
- Set debug properties
-
- On the
Debug tab, ensure that
Launch is set to
CICS.
- Click
File > Save All to save all property settings.
Build the ACCTWEB project