C ctgesib1 sample
This sample lists the CICS® servers that are defined on a remote CICS Transaction Gateway, and allows you to select a server. You are prompted to input the user ID and password or password phrase, which are then verified on the chosen server by using the ESI V2 API. The last verified time of the user ID and the password expiry time are displayed.
The ctgesib1 sample is written in C and is installed in the <install_path>>/samples/c/esi_v2 or the <SDK_path>/api/c/remote/samples/esi_v2 SDK directory.
To build the sample, change to the <install_path>/samples/c/esi_v2 directory
and issue the following command:
| Platform/compiler | 32-bit sample | 64-bit sample |
|---|---|---|
| UNIX and Linux® | make -f samp.mak |
make -f samp64.mak |
| Linux on POWER® using IBM® XL C | make -f samp.mak COMPILER=XL |
make -f samp64.mak COMPILER=XL |
| Windows | ctgesib1mak.cmd 32 |
ctgesib1mak.cmd 64 |
To build the SDK sample, change to the
<SDK_path>/api/c/remote/samples/esi_v2 directory and issue the following
command:
Where <platform> is one of: IBM AIX®, LinuxI, LinuxP, LinuxZ.
| Platform/compiler | 32-bit sample | 64-bit sample |
|---|---|---|
| UNIX and Linux | make -f make32 OS=<platform> |
make -f make64 OS=<platform> |
| Linux on POWER using IBM XL C | make -f make32 OS=<platform> COMPILER=XL |
make -f make64 OS=<platform> COMPILER=XL |
| Windows | make 32 |
make 64 |
When compiled, the sample program can be executed using the following
command:
ctgesib1 [host name] [port number]