serverName

const char* serverName(unsigned short index = 1)

index
The index of a configured server

Returns the name of the requested CICS® server, or NULL if no information is available in the CICS Transaction Gateway initialization file for the specified server. If the index exceeds the number of servers configured, a maxServers exception is raised.