Home
Reason codes
The reason code parameter (Reason) qualifies the completion code parameter (CompCode).
If there is no special reason to report, MQRC_NONE is returned. A successful call returns MQCC_OK and MQRC_NONE.
If the completion code is either MQCC_WARNING or MQCC_FAILED, the queue manager always reports a qualifying reason; details are given under each call description.
Where user exit routines set completion codes and reasons, they must adhere to these rules. In addition, any special reason values defined by user exits must be less than zero, to ensure that they do not conflict with values defined by the queue manager. Exits can set reasons already defined by the queue manager, where these are appropriate.
Reason codes also occur in:
- The Reason field of the MQDLH structure
- The Feedback field of the MQMD structure
For complete descriptions of reason codes see:
- WebSphere MQ for z/OS Messages and Codes for WebSphere MQ for z/OS
- WebSphere MQ Messages for all other WebSphere MQ platforms
Home