You need to insert your ECI calls to the CTG in your program. In COBOL, an ECI call looks like this:
CALL "CICS_ExternalCall" USING ECI-PARMS
ECI-PARMS is the ECI parameter block, through which the program communicates with the server. The parameter control block is available as a copybook in the copybook folder within your CTG installation. It is called cicseci.cbl. You need to make this copybook available to your client program. You do this by adding the CTG copybook directory to the COBCPY environment variable.
When you compile your program to an executable, you must link it to the CTG library, cclwin32.lib.
For further information about using CICS Transaction Gateway, see the IBM manual CICS Family: Client/Server Programming (SC33-1435).
Before you run the demonstration, prepare the Net Express client as follows:
01 ECI-Client-Type. 03 pic x comp-x *> -- *> --Change the following value to select client type *> -- value 0. 88 ECI-MicroFocus-88 value 0. 88 ECI-UniCli-88 value 1.
Change the above value clause to set ECI-Client-Type to 1.