MQCONN()

This subroutine provides a connection handle from the application program to a queue manager.

Syntax

call MQCONN(QMName, Hconn, CompCode, Reason)

Parameters

Parameter Data Transfer Description
QMName inbound The name of the Queue Manager to open. Set to null to open the default queue manager.
Hconn outbound The new connection handle is passed back here.
CompCode outbound The completion code. Can be MQCC_OK or MQCC_FAILED.
Reason outbound If the CompCode is MQCC_FAILED, the Reason gives a code that explains why.