MQI CLOSE
This statement closes a previously opened queue.
Command | Parameters |
---|---|
IMFEXEC MQI CLOSE | HCONN(hconn) HOBJ(hobj) COPTS(options) |
The following table describes the IMFEXEC MQI CLOSE parameters.
Parameter | Function | Notes |
---|---|---|
HCONN | Provides the connection handle that represents the connection to the queue manager. | This parameter:
If omitted, the connection handle value is the default variable, IMFHCONN. The connection handle is returned by a previous IMFEXEC MQI CONN request and stored in the IMFHCONN variable or a user-specified variable. |
HOBJ | Provides the object handle that represents the object being closed. | This parameter:
If omitted:
|
COPTS | Specifies the options that control the action of CLOSE. | This parameter is not required. If omitted, the close options value is taken from the default variable IMFMQI_CO_OPTIONS. If IMFMQI_CO_OPTIONS is not set, the default option of MQCO_NONE is used. Valid close options:
|
The completion code is returned in the IMFMQCC and IMFCC variables. For additional information, see How-completion-and-reason-codes-are-returned.
The reason code is returned in the IMFMQRC and IMFRC variables; contents of both variables are the same.
IMFMQI_REASON contains the constant (character) reason code. See the IBM documentation MQ Application Programming Reference or the IBM Knowledge Center for the reason code description.
This section contains the following topic:
Related topic