MQI CONN
With the MQI CONN statement, an application can connect to a queue manager.
It returns a queue manager connection handle to the EXEC, which is used by the application for all other IMFEXEC MQI statements.
Command | Parameters |
---|---|
IMFEXEC MQI CONN | NAME(qmgr) HCONN(hconn) |
The following table describes the IMFEXEC MQI CONN parameters.
Parameter | Function | Notes |
---|---|---|
NAME | The name of a connectable queue manager. | n/a |
HCONN | Provides a variable to contain the connection handle. | This parameter:
If omitted, the connection handle value is the default variable IMFHCONN. |
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