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
Tidy up and end the application.
To finish the current unit of work, remove the fail-if-quiescing option from the failing call and reissue it.
Do not start a new unit of work once the queue manager is quiescing.