Standard responses
Command messages with a header type of MQCFT_COMMAND, standard responses are generated. Such commands are supported on all platforms except z/OS®.
- OK response
- Error response
- Data response
OK response
This response consists of a message starting with a command format header, with a CompCode
field of MQCC_OK or MQCC_WARNING.
For MQCC_OK, the Reason
is MQRC_NONE.
For MQCC_WARNING, the Reason
identifies the nature of the warning. In this case the command format header might be followed by one or more warning parameter structures appropriate to this reason code.
In either case, for an inquire command further parameter structures might follow as described in the following sections.
Error response
If the command has an error, one or more error response messages are sent (more than one might be sent even for a command that would normally have only a single response message). These error response messages have MQCFC_LAST or MQCFC_NOT_LAST set as appropriate.
CompCode
value of MQCC_FAILED and a Reason
field that identifies the particular error. In general, each message describes a different error. In addition, each message has either zero or one (never more than one) error parameter structures following the header. This parameter structure, if there is one, is an MQCFIN structure, with a Parameter
field containing one of the following:- MQIACF_PARAMETER_ID
The
Value
field in the structure is the parameter identifier of the parameter that was in error (for example, MQCA_Q_NAME). - MQIACF_ERROR_ID
This value is used with a
Reason
value (in the command format header) of MQRC_UNEXPECTED_ERROR. TheValue
field in the MQCFIN structure is the unexpected reason code received by the command server. - MQIACF_SELECTOR
This value occurs if a list structure (MQCFIL) sent with the command contains a duplicate selector or one that is not valid. The
Reason
field in the command format header identifies the error, and theValue
field in the MQCFIN structure is the parameter value in the MQCFIL structure of the command that was in error. - MQIACF_ERROR_OFFSET
This value occurs when there is a data compare error on the Ping Channel command. The
Value
field in the structure is the offset of the Ping Channel compare error. - MQIA_CODED_CHAR_SET_ID
This value occurs when the coded character-set identifier in the message descriptor of the incoming PCF command message does not match that of the target queue manager. The
Value
field in the structure is the coded character-set identifier of the queue manager.
The last (or only) error response message is a summary response, with a CompCode
field of MQCC_FAILED, and a Reason
field of MQRCCF_COMMAND_FAILED. This message has no parameter structure following the header.
Data response
This response consists of an OK response (as described earlier) to an inquire command. The OK response is followed by additional structures containing the requested data as described in Definitions of the Programmable Command Formats.
Applications must not depend upon these additional parameter structures being returned in any particular order.