What it means
The queue manager limits how many uncommitted messages one unit of work may hold, set by the MaxUncommittedMsgs attribute. The count includes messages put or got under syncpoint, trigger messages and COA reports made for syncpoint puts, and COD reports made for syncpoint gets. A call that would exceed the limit fails with 2024.
IBM also notes that publishing to topics outside syncpoint can produce this reason code.
Typical causes
- The application is looping and keeps putting or getting messages in one unit of work.
- The uncommitted messages in the unit of work (puts and gets under syncpoint, plus trigger, COA and COD report messages) would exceed the queue manager MaxUncommittedMsgs limit.
- Messages were published out of syncpoint to topics, which can also give this reason code.
How to fix it
- Check whether the application is looping.
- If it is not looping, simplify the application logic, for example by keeping units of work smaller.
- Alternatively raise the queue manager's maximum number of uncommitted messages: ALTER QMGR on z/OS, CHGMQM on IBM i.
Example
Illustrative only; names and values are invented.
MQPUT failed CompCode=2 Reason=2024 Queue=APP.BATCH.OUT