CLIENTMSG structure

Description

A CLIENTMSG (client message) structure contains information about an error or informational message returned by Open ClientConnect. This structure is defined within the application. When the error involves interaction with the operating system, the operating system error information is returned to this structure. CTBDIAG returns a message string and information about the message into CLIENTMSG.

Server messages are returned to a SERVERMSG structure, described in “SERVERMSG structure”. A sample CLIENTMSG structure is provided in the CTPUBLIC copybook.

A CLIENTMSG structure is defined as follows:

01 CLIENTMSG.
05 CMSG-SEVERITY PIC S9(9) COMP SYNC.
05 CMSG-OC-MSGNO PIC S9(9) COMP SYNC. 
05 CMSG-OC-MSGTEXT PIC X(256). 
05 CMSG-OC-MSGTEXT-LEN	 PIC S9(9) COMP SYNC.
05	CMSG-OS-MSGNO PIC S9(9) COMP SYNC.
05 CMSG-OS-MSGTEXT PIC X(256).
05 CMSG-OS-MSGTEXT-LEN	 PIC S9(9) COMP SYNC.
05 CMSG-STATUS PIC S9(9) COMP SYNC.