2534 (09E6) (RC2534): MQRC_OPERATION_NOT_ALLOWED
Explanation
An MQCTL call was made with an Operation that is not allowed, because of the current state of asynchronous consumption on the hConn.
If Operation was MQOP_RESUME, the operation is not allowed because the state of asynchronous consumption on the hConn is STOPPED. Re-issue MQCTL with the MQOP_START Operation.
If Operation was MQOP_SUSPEND, the operation is not allowed because the state of asynchronous consumption on the hConn is STOPPED. For to get your hConn into a SUSPENDED state, issue MQCTL with the MQOP_START Operation followed by MQCTL with MQOP_SUSPEND.
If Operation was MQOP_START, the operation is not allowed because the state of asynchronous consumption on the hConn is SUSPENDED. Re-issue MQCTL with the MQOP_RESUME Operation.
If Operation was MQOP_START_WAIT, the operation is not allowed because either:- The state of asynchronous consumption on the hConn is SUSPENDED. Re-issue MQCTL with the MQOP_RESUME Operation.
- The state of asynchronous consumption on the hConn is already STARTED. Do not mix the use of MQOP_START and MQOP_START_WAIT within one application.
Completion code
MQCC_FAILED
Programmer response
Re-issue the MQCTL call with the correct Operation.
Parent topic: API reason codes