C ctgecib2 sample
This sample lists the CICS® servers defined on a remote CICS Transaction Gateway, and allows you to select the CICS server to which a number of asynchronous ECI program calls are made. The CICS program EC01 returns the date and time on each call. A separate thread retrieves the responses for the program calls and displays the results of each call.
The ctgecib2 sample is written in C and is installed in the <install_path>/samples/c/eci_v2 product directory or the <SDK_path>/api/c/remote/samples/eci_v2 SDK directory.
To build the product sample, change to the <install_path>/samples/c/eci_v2 directory
and issue the following command:
| Platform/compiler | 64-bit sample | |
|---|---|---|
| UNIX and Linux® | make -f samp64.mak |
|
| Linux on POWER® using IBM® XL C | make -f samp64.mak COMPILER=XL |
|
| Windows | ctgecib2mak.cmd 64 |
To build the SDK sample, change to the
<SDK_path>/api/c/remote/samples/eci_v2 directory and issue the following
command:
where
| Platform/compiler | 64-bit sample | |
|---|---|---|
| UNIX and Linux | make -f make64 OS=<platform> |
|
| Linux on POWER using IBM XL C | make -f make64 OS=<platform> COMPILER=XL |
|
| Windows | make 64 |
<platform> is one of: IBM AIX®, LinuxI, LinuxP, LinuxZ.Once compiled, the sample program can be started using the following
command:
ctgecib2 [host name] [port number] [num calls] [user id] [password]