Opening objects using the MQOPEN call
As input to the MQOPEN call, you must supply:
- A connection handle. For CICS(R) applications on z/OS(TM), you can specify
the constant MQHC_DEF_HCONN (which has the value zero), or use the connection
handle returned by the MQCONN or MQCONNX call. For other programs, always
use the connection handle returned by the MQCONN or MQCONNX call.
- A description of the object that you want to open, using the object descriptor
structure (MQOD).
- One or more options that control the action of the call.
The output from MQOPEN is:
- An object handle that represents your access to the object. Use this on
input to any subsequent MQI calls.
- A modified object-descriptor structure, if you are creating a dynamic
queue (and it is supported on your platform).
- A completion code.
- A reason code.