CS_SERVERMSG structure

Description

A CS_SERVERMSG (server message) structure contains information about an error or informational message returned by the server. This structure is defined within the application. ct_diag returns a message string and information about the message in this structure.

Client messages are returned to a CS_CLIENTMSG structure as described in “CS_CLIENTMSG structure”.

CS_CLIENTMSG and CS_SERVERMSG structures are part of the Mainframe ClientConnect (MCC) CTPUBLIC include file.

This structure contains information about all messages received by the client application, including MCC messages, messages returned by the remote transactions, and messages returned by the database, such as DB2 Access Module messages and Adaptive Server messages.

A CS_SERVERMSG structure is defined as follows:

typedef struct_cs_servermsg { 
CS_MSGNUM msgnumber; 
CS_INT state; 
CS_INT severity; 
CS_CHAR text[CS_MAX_MSG]; 
CS_INT textlen; 
CS_CHAR svrname[CS_MAX_MSG]; 
CS_INT svrnlen;
 /*
**RPC’s may be involved. If so, the 
**following have info in them. 
*/
CS_CHAR proc[CS_MAX_MSG]; 
CS_INT proclen; 
CS_INT line; 
CS_INT status; 
} CS_SERVERMSG

Description of arguments in CS_SERVERMSG structure