Event message MQCFH (PCF header)

The message data in event messages is in programmable command format (PCF), as used in PCF command inquiries and responses. The message data consists of two parts: the event header and the event data.

The MQCFH header specifies the following information:

  • The category of event: whether the event is a queue manager, performance, channel, configuration, command, or logger event.
  • A reason code specifying the cause of the event. For events caused by MQI calls, this reason code is the same as the reason code for the MQI call.

Reason codes have names that begin with the characters MQRC_. For example, the reason code MQRC_PUT_INHIBITED is generated when an application attempts to put a message on a queue that is not enabled for puts.

For an event, the MQCFH structure contains the following values:
Type
StrucLength
Version
Command
MsgSeqNumber
Control
CompCode
Reason
ParameterCount