Every MQI call after connecting needs the Hconn value from a successful MQCONN or MQCONNX. This reason code means the handle supplied is not valid for the call. The completion code is MQCC_FAILED.
Typical causes
The handle was not returned by an earlier MQCONN or MQCONNX call, or the parameter pointer is not valid.
The handle was made invalid by an earlier MQDISC, including a shared handle disconnected by another thread.
A nonshared handle is used on a thread that did not create it, or a shared handle is used on MQBEGIN.
On z/OS, the program was linked with the wrong stub or one from a newer queue manager release.
On CICS, a character conversion exit that calls MQXCNVC is not defined as OPENAPI.
How to fix it
Make sure a successful MQCONN or MQCONNX was done and that MQDISC has not already been issued for the handle.
Use the handle only within its valid scope, as described for MQCONN.
On z/OS, link with CSQBSTUB for batch, CSQCSTUB for CICS and CSQQSTUB for IMS, and use a stub no newer than the queue manager release.
On CICS, define the conversion exit that calls MQXCNVC as OPENAPI.