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
- 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.
- In the
Name field, type
ACCT.
- In the
Location field, type the name of your parent project directory –
c:\tutorials\CICS.
- Uncheck
Create directory for solution.
- Click
OK.
This creates a subdirectory,
ACCT, under your parent project directory.
Import ACCT Demonstration Files
- 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.
- Copy all subdirectories from this location, and paste them into your project directory,
c:\tutorials\CICS\ACCT.
- In Visual Studio, right-click your project in the
Solution Explorer and select
Add >
Existing Item.
- Browse to the
c:\tutorials\CICS\ACCT\cbl folder, select all items, then click
Add.
- If the
Preview Changes - Directive Determination dialog box appears, check
Don't ask again; then click
Apply.
- Again, right-click your project in the
Solution Explorer and select
Add > Existing Item.
- Browse to the
c:\tutorials\CICS\ACCT\bms folder.
- 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
- In the
Solution Explorer, double-click the
Properties folder.
- On the
Dependency Paths tab, ensure the path type is set to
COBOL Copybook Paths.
- Double-click in the top left corner of the entry box to add a text field; then single-click the field to select it.
- Type
.\cpy into the text field.
- Click the
Check Entries icon
to save the entry.
- On the
BMS tab:
- Ensure
DSECT and
MAP are set to
Yes.
- In the
Copybook Output Path field, type
.\cpy.
- In the
Load Module Output Path field, type
.\loadlib.
- On the
COBOL tab:
- Ensure
Platform Target is set to
x86.
- Set
Character set to
ASCII.
- From the
Source Format drop-down list, choose
Fixed.
- Ensure
Compile for debugging is checked.
- Check
EXEC CICS.
- Replace the contents of the
Output path field with
.\loadlib.
- On the
Debug tab, ensure that the
Launch drop-down list is set to
CICS.
- 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.
- 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.
- Copy the entire
ACCT subdirectory to the
c:\tutorials\CICS parent project directory.
Build the ACCT application