To open specific message queues in WebSphere MQ, use the following code:
CALL 'MQOPEN' USING by value HCONN, by reference OBJDESC, by value OPTS, by reference HQUEUE, COMPCODE, REASON
in the following modes:
INPUT Mode:
Variable | Description | Definition |
---|---|---|
HCONN | S9(9) BINARY handle to queue manager | User-defined |
OBJDESC | Structure that identifies the object to be opened | cmqodv.cpy |
OPTS | S9(9) BINARY options that control the action of MQOPEN | User-defined |
The available OPTS S9(9) BINARY options are specified in "cmqv.cpy". From the options that are available, at least one of the following options must be specified:
To specify multiple options, add them together.
OUTPUT Mode:
Variable | Description | Definition |
---|---|---|
HQUEUE | S9(9) BINARY handle to queue | User-defined |
COMPCODE | S9(9) BINARY returns the completion code | User-defined |
REASON | S9(9) BINARY returns the reason | User-defined |