MQDISC()

The MQDISC subroutine releases the connection between the queue manager and the application program.

Syntax

call MQDISC(Hconn, CompCode, Reason)

Parameters

Parameter Data Transfer Description
Hconn inbound The connection handle to disconnect.
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.