2246 (08C6) (RC2246): MQRC_INVALID_MSG_UNDER_CURSOR
Explanation
An MQGET call was issued specifying the MQGMO_COMPLETE_MSG option with either MQGMO_MSG_UNDER_CURSOR or MQGMO_BROWSE_MSG_UNDER_CURSOR, but the message that is under the cursor has an MQMD with an Offset field that is greater than zero. Because MQGMO_COMPLETE_MSG was specified, the message is not valid for retrieval.
Completion code
MQCC_FAILED
Programmer response
Reposition the browse cursor so that it is located on a message with an Offset field in MQMD that is zero. Alternatively, remove the MQGMO_COMPLETE_MSG option.
Parent topic: API reason codes