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.
This reason code occurs in the following environments: AIX®, HP-UX, IBM® i, Solaris, Windows, plus IBM MQ clients connected to these systems.
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.