Error codes

At the end of most command format definitions there is a list of error codes that might be returned by that command.

Error codes applicable to all commands

In addition to those listed under each command format, any command might return the following in the response format header (descriptions of the MQRC_* error codes are given in the WebSphere MQ Messages and WebSphere MQ for z/OS Messages and Codes manuals):

Reason (MQLONG)
The value can be:
MQRC_NONE
(0, X'000') No reason to report.
MQRC_MSG_TOO_BIG_FOR_Q
(2030, X'7EE') Message length greater than maximum for queue.
MQRC_CONNECTION_BROKEN
(2009, X'7D9') Connection to queue manager lost.
MQRC_NOT_AUTHORIZED
(2035, X'7F3') Not authorized for access.
MQRC_UNKNOWN_OBJECT_NAME
(2067, X'813') Attribute selector not valid.
MQRC_STORAGE_NOT_AVAILABLE
(2071, X'817') Insufficient storage available.
MQRC_UNKNOWN_OBJECT_NAME
(2085, X'825') Unknown object name.
MQRCCF_ATTR_VALUE_ERROR
Attribute value not valid.
MQRCCF_CFBF_FILTER_VAL_LEN_ERROR
Filter value length not valid.
MQRCCF_CFBF_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFBF_OPERATOR_ERROR
Operator error.
MQRCCF_CFBF_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFBS_DUPLICATE_PARM
Duplicate parameter.
MQRCCF_CFBS_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFBS_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFBS_STRING_LENGTH_ERROR
String length not valid.
MQRCCF_CFGR_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFGR_PARM_COUNT_ERROR
Parameter count not valid.
MQRCCF_CFGR_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFH_COMMAND_ERROR
Command identifier not valid.
MQRCCF_CFH_CONTROL_ERROR
Control option not valid.
MQRCCF_CFH_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFH_MSG_SEQ_NUMBER_ERR
Message sequence number not valid.
MQRCCF_CFH_PARM_COUNT_ERROR
Parameter count not valid.
MQRCCF_CFH_TYPE_ERROR
Type not valid.
MQRCCF_CFH_VERSION_ERROR
Structure version number is not valid.
MQRCCF_CFIF_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFIF_OPERATOR_ERROR
Operator error.
MQRCCF_CFIF_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFIL_COUNT_ERROR
Count of parameter values not valid.
MQRCCF_CFIL_DUPLICATE_VALUE
Duplicate parameter.
MQRCCF_CFIL_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFIL_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFIN_DUPLICATE_PARM
Duplicate parameter.
MQRCCF_CFIN_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFIN_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFSF_FILTER_VAL_LEN_ERROR
Filter value length not valid.
MQRCCF_CFSF_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFSF_OPERATOR_ERROR
Operator error.
MQRCCF_CFSF_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFSL_COUNT_ERROR
Count of parameter values not valid.
MQRCCF_CFSL_DUPLICATE_PARM
Duplicate parameter.
MQRCCF_CFSL_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFSL_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFSL_STRING_LENGTH_ERROR
String length value not valid.
MQRCCF_CFSL_TOTAL_LENGTH_ERROR
Total string length error.
MQRCCF_CFST_CONFLICTING_PARM
Conflicting parameters.
MQRCCF_CFST_DUPLICATE_PARM
Duplicate parameter.
MQRCCF_CFST_LENGTH_ERROR
Structure length not valid.
MQRCCF_CFST_PARM_ID_ERROR
Parameter identifier not valid.
MQRCCF_CFST_STRING_LENGTH_ERROR
String length value not valid.
MQRCCF_COMMAND_FAILED
Command failed.
MQRCCF_ENCODING_ERROR
Encoding error.
MQRCCF_MD_FORMAT_ERROR
Format not valid.
MQRCCF_MSG_SEQ_NUMBER_ERROR
Message sequence number not valid.
MQRCCF_MSG_TRUNCATED
Message truncated.
MQRCCF_MSG_LENGTH_ERROR
Message length not valid.
MQRCCF_OBJECT_NAME_ERROR
Object name not valid.
MQRCCF_OBJECT_OPEN
Object is open.
MQRCCF_PARM_COUNT_TOO_BIG
Parameter count too big.
MQRCCF_PARM_COUNT_TOO_SMALL
Parameter count too small.
MQRCCF_PARM_SEQUENCE_ERROR
Parameter sequence not valid.
MQRCCF_PARM_SYNTAX_ERROR
Syntax error found in parameter.
MQRCCF_STRUCTURE_TYPE_ERROR
Structure type not valid.