To close message queues in WebSphere MQ, use the following code:
CALL 'MQCLOSE' USING by value HCONN, by reference HQUEUE, by value OPTS, by reference COMPCODE, REASON.
in the following modes:
INPUT Mode:
Variable | Description | Definition |
---|---|---|
HCONN | S9(9) BINARY handle to queue manager | User-defined |
OPTS | S9(9) BINARY options that control the action of MQCLOSE | User-defined |
The available OPTS S9(9) BINARY options are specified in "cmqv.cpy". Only one of the following options should be specified:
OUTPUT Mode:
Variable | Description | Definition |
---|---|---|
COMPCODE | S9(9) BINARY returns the completion code | User-defined |
REASON | S9(9) BINARY returns the reason | User-defined |