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

2161

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

The queue manager is quiescing (preparing to shut down) and the call asked to fail in that case, or no connection was established on z/OS or IBM i.

QUICK ANSWER

The queue manager is quiescing (preparing to shut down) and the call asked to fail in that case, or no connection was established on z/OS or IBM i.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The queue manager is preparing to shut down and the call used MQOO_FAIL_IF_QUIESCING, MQPMO_FAIL_IF_QUIESCING or MQGMO_FAIL_IF_QUIESCING.
  2. On z/OS, a batch application runs in an LPAR with no queue manager installed.
  3. On z/OS, a CICS application has no connection established.
  4. On IBM i, a compatibility-mode application has no connection established.

CHECKED 14 Nov 2026 IBM: 2161 (0871) (RC2161): MQRC_Q_MGR_QUIESCING - IBM MQ 10.0.x

MOST LIKELY

The queue manager is preparing to shut down and the call used MQOO_FAIL_IF_QUIESCING, MQPMO_FAIL_IF_QUIESCING or MQGMO_FAIL_IF_QUIESCING.

FIRST CHECK

Tidy up and end the application.

TRY IT ▸

Site search

What it means

While the queue manager is quiescing, MQOPEN, MQPUT, MQPUT1 and MQGET can still succeed, but the fail-if-quiescing option on the call makes them fail with 2161 so the application learns of the shutdown. The completion code is MQCC_FAILED.

Typical causes

  • The queue manager is preparing to shut down and the call used MQOO_FAIL_IF_QUIESCING, MQPMO_FAIL_IF_QUIESCING or MQGMO_FAIL_IF_QUIESCING.
  • On z/OS, a batch application runs in an LPAR with no queue manager installed.
  • On z/OS, a CICS application has no connection established.
  • On IBM i, a compatibility-mode application has no connection established.

How to fix it

  1. Tidy up and end the application.
  2. To finish the current unit of work, remove the fail-if-quiescing option from the failing call and reissue it.
  3. Do not start a new unit of work once the queue manager is quiescing.

Example

Illustrative only; names and values are invented.

MQGET failed  CompCode=2  Reason=2161  QMgr=QM01