What it means
The connection to the queue manager has been lost, which can happen because the queue manager ended. A waiting MQGET with the wait option is cancelled, and all connection and object handles become invalid.
For MQI client applications, the call may actually have completed even though it reports a failed completion code.
Typical causes
- The queue manager has ended.
- The connection between the application and the queue manager was lost for another reason.
How to fix it
- Issue MQCONN or MQCONNX again to reconnect; polling until it succeeds may be needed.
- Back out any uncommitted changes in the unit of work; a unit of work coordinated by the queue manager is backed out automatically.
- On z/OS CICS, no explicit MQCONN is needed because CICS applications are connected automatically.
- On z/OS IMS, check the subsystem with DIS SUBSYS and start it with STA SUBSYS if necessary.
Example
Illustrative only; names and values are invented.
MQGET failed CompCode=2 Reason=2009 QMgr=QM01