Previous Topic Next topic Print topic


Configure the client-side project and build

Complete the client-side project settings and import the COBOL source files.
  1. 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.
  2. Expand Micro Focus > Build Configurations, click on COBOL and change the Output path field to .\loadlib.
  3. Still on the Micro Focus > Build Configurations > COBOL page, select All Executable Files from the Target Type list.
  4. Still on the COBOL page,Expand Micro Focus > Project Settings, click on COBOL and select ASCII from the Character Set list..
  5. On the same page, select Micro Focus from the Language dialect list.
  6. Enter the following into the Additional directives textbox: copyext(CBL, cbl, CPY, cpy) remove(namespace) hidemessage(1168) then click OK.
  7. 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.
  8. 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.
  9. 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.
  10. Click File > Save All to save your work (if the menu option is greyed out, then it has already been automatically saved).
  11. Click Project > Build All to build the project. Verify that all programs have built successfully.
Previous Topic Next topic Print topic