Finding potential servers

Information about the CICS® servers that can be used by a Client application is defined in the CICS Transaction Gateway configuration file (ctg.ini). The existence of a server definition doesn't guarantee availability of a server.

The ECI object CclECI provides access to this server information through its serverCount, serverDesc, and serverName methods. Unless the ECI class has been subclassed, its unique instance is found using the class method instance as in the following example:
CclECI* pECI = CclECI::instance();
printf( "Server Count = %d\n", pECI-> serverCount() );
printf( "Server1 Name = %s\n", pECI-> serverName( 1 ) );
  …
Typical output produced:
Server Count = 2
Server1 Name = DEVTSERV

Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/ecifps.html