Opening objects using the MQOPEN call
As input to the MQOPEN call, supply:
- A connection handle. For CICS applications on z/OS™, we 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.
- Scope of an object handle
- Identifying objects (the MQOD structure)
- Name resolution
How the MQOPEN call resolves queue names.- Using the options of the MQOPEN call
Parent topic:
Opening and closing objects
fg12140_