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.

Definition

A CLIENTMSG structure is defined as follows:

DCL
01 CLIENTMSG,
05 CMSG_SEVERITY                  FIXED BIN(31),
05 CMSG_OC_MSGNO               FIXED BIN(31),
05 CMSG_OC_MSGTEXT           CHAR(256),
05 CMSG_OC_MSGTEXT_LEN   FIXED BIN(31),
05	CMSG_OS_MSGNO              FIXED BIN(31),
05 CMSG_OS_MSGTEXT            CHAR(256),
05 CMSG_OS_MSGTEXT_LEN   FIXED BIN(31),
05 CMSG_STATUS                         FIXED BIN(31);