Complete the client-side project settings and import the COBOL source files.
-
In the
COBOL Explorer, right-click on the name of your project - CTGCLI - and click
Properties.
This reveals the properties page for the CTGCLI project.
-
Expand
Micro Focus > Build Configurations, click on
COBOL and change the
Output path field to
.\loadlib.
-
Still on the
Micro Focus > Build Configurations > COBOL page, select
All Executable Files from the
Target Type list.
-
Still on the
COBOL page,Expand
Micro Focus > Project Settings, click on
COBOL and set
Character Set to
ASCII.
-
Set
Language dialect to
Micro Focus.
-
In the
Additional directives value cell, click
, type
copyext(CBL, cbl, CPY, cpy) remove(namespace) hidemessage(1168) in the
Additional directives dialog box, then click
OK.
-
You now need to import two CTG copybook files. These are distributed with the IBM CTG software. On the machine on which we
wrote this demonstration, the copybooks were located in:
C:\Program Files (x86)\ibm\CICS Transaction Gateway\copybook but this may not be the case in your own environment. The two copybook files we are interested in are:
cicseci.cbl and
cicsepi.cbl, and you may need to search for them on your machine to pinpoint their location.
-
When you have located the copybook files, right-click on the name of the CTGCLI project in COBOL Explorer, and select
Import > Import > File System, then click
Next > and the topmost
Browse button, and navigate to the folder which you know contains the copybook files. When done, click
OK.
-
Check
cicsepi.cbl and
cicseci.cbl in the right-hand top pane. Click the lower
Browse button and navigate to your project's
cblcli directory. Click
OK when done, and then finally, on the next screen, click
Finish.
-
Click
File > Save All to save your work (if the menu option is greyed out, then it has already been automatically saved).
-
Click
Project > Build All to build the
project.
Verify that all programs have built successfully.