Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

2080

MQRC_TRUNCATED_MSG_FAILED (X'0820')MQ REASON CODE · CHECKED 2026-11-14
Checked against IBM documentation

MQGET found a message too big for the buffer; truncation was not accepted, so the message stays on the queue.

QUICK ANSWER

MQGET found a message too big for the buffer; truncation was not accepted, so the message stays on the queue.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The buffer supplied on MQGET is smaller than the message.
  2. MQGMO_ACCEPT_TRUNCATED_MSG was not specified.

CHECKED 14 Nov 2026 IBM: 2080 (0820) (RC2080): MQRC_TRUNCATED_MSG_FAILED - IBM MQ 10.0.x

MOST LIKELY

The buffer supplied on MQGET is smaller than the message.

FIRST CHECK

Supply a buffer at least as large as DataLength, then get the message again.

TRY IT ▸

Site search

What it means

The message did not fit in the supplied buffer and MQGMO_ACCEPT_TRUNCATED_MSG was not specified, so the message was not removed. DataLength holds the length before truncation, the buffer holds as much as fits, and the MQMD is filled in. The completion code is MQCC_WARNING.

Typical causes

  • The buffer supplied on MQGET is smaller than the message.
  • MQGMO_ACCEPT_TRUNCATED_MSG was not specified.

How to fix it

  1. Supply a buffer at least as large as DataLength, then get the message again.
  2. Specify MQGMO_ACCEPT_TRUNCATED_MSG if not all the message data is needed.

Example

Illustrative only; names and values are invented.

MQGET warning  CompCode=1  Reason=2080  BufferLength=1024  DataLength=8192