Scope of an object handle

The scope of an object handle (Hobj) is the same as the scope of a connection handle (Hconn). This is covered in Scope of MQCONN or MQCONNX and Shared (thread independent) connections with MQCONNX. However, there are additional considerations in some environments :

CICS(R)
In a CICS program, you can use the handle only within the same CICS task from which you made the MQOPEN call.
IMS and z/OS batch
In the IMS and batch environments, you can use the handle within the same task, but not within any subtasks.

Descriptions of the parameters of the MQOPEN call are given in the WebSphere MQ Application Programming Reference.

The following sections describe the information that you must supply as input to MQOPEN.