What it means
An MQPUT or MQPUT1 failed because the message was too long and segmentation was not allowed. Without segmentation the length cannot exceed the lesser of the queue manager and queue MaxMsgLength. The same code can appear in the Feedback field of a report message when a message channel agent could not put the message on a remote queue, or when a channel limits the message length below the queue manager value.
Typical causes
- The message is longer than the lesser of the queue manager and queue MaxMsgLength and MQMF_SEGMENTATION_ALLOWED was not set.
- Segmentation is allowed, but the data cannot be split into segments small enough for the queue manager limit.
- A channel the message passes through has a maximum message length lower than the queue manager's, and the message exceeds it.
How to fix it
- Check that BufferLength is specified correctly.
- Increase the queue manager MaxMsgLength; the queue MaxMsgLength may also need raising.
- Break the message into several smaller messages, or specify MQMF_SEGMENTATION_ALLOWED so the queue manager can segment it.
- Check the channel definitions.
Example
Illustrative only; names and values are invented.
MQPUT failed CompCode=2 Reason=2031 QMgr=QM01
DISPLAY CHANNEL(CHL.TO.QM02) MAXMSGL