|
|||||
|
||||||
Related Syntax | Other Library Functions |
function |
mq-connect |
Library: Interfaces, MQSeries access (OMMQI)
Include: ommqi.xin |
Return type: mq-queue-manager Returns: A configured mq-connection object wrapping a connection to the queue manager. |
define external mq-connection function mq-connect to value stream queue-manager-name
Argument definitions
Use mq-connect to create a connection to a queue manager.
You must include the following line at the beginning of your OmniMark program:
include "ommqi.xin"
This function corresponds to the MQCONN function in the MQSeries API.
The CompCode and Reason parameters of MQCONN are integrated into the OMMQI error handling.
Connect to queue manager "QM_desthost".
include "ommqi.xin" process local mq-connection a-connection ; Connect to queue manager QM_desthost set a-connection to mq-connect to "QM_desthost"