What it means
An MQPUT or MQPUT1 tried to put a message that was too long for the queue without MQMF_SEGMENTATION_ALLOWED. Without segmentation, the length may not exceed the lesser of the queue's and the queue manager's MaxMsgLength.
On z/OS segmentation is not supported, so the flag is accepted but ignored. The code can also appear in the Feedback field of a report message when a channel agent could not put the message on a remote queue.
Typical causes
- The message is longer than the lesser of the queue and queue manager MaxMsgLength attributes.
- On z/OS, the program relies on segmentation, which the queue manager ignores.
- Segmentation was requested but the data cannot be split into segments small enough for the queue.
How to fix it
- Check that the BufferLength parameter is specified correctly.
- Raise the queue's MaxMsgLength; the queue manager's MaxMsgLength may need raising too.
- Break the message into several smaller messages.
- Specify MQMF_SEGMENTATION_ALLOWED in MsgFlags so the queue manager can segment (not on z/OS).
Example
Illustrative only; names and values are invented.
MQPUT failed CompCode=2 Reason=2030 Queue=APP.REQUEST.QUEUE