The MQXWAIT call waits for an event to occur. It can be used only from a channel exit on z/OS when not using CICS.
|
The MQXWAIT call has the following parameters.
Connection handle.
This handle represents the connection to the queue manager. The value of Hconn was returned by a previous MQCONN call issued in the same or earlier invocation of the exit.
Wait descriptor.
This describes the event to wait for. See MQXWD - Exit wait descriptor for details of the fields in this structure.
Completion code.
Reason code qualifying CompCode.
If CompCode is MQCC_FAILED:
For more information on these reason codes, see the WebSphere MQ Application Programming Reference.
MQXWAIT (Hconn, &WaitDesc, &CompCode, &Reason);
Declare the parameters as follows:
MQHCONN Hconn; /* Connection handle */ MQXWD WaitDesc; /* Wait descriptor */ MQLONG CompCode; /* Completion code */ MQLONG Reason; /* Reason code qualifying CompCode */
CALL MQXWAIT,(HCONN,WAITDESC,COMPCODE,REASON)
Declare the parameters as follows:
HCONN DS F Connection handle WAITDESC CMQXWDA , Wait descriptor COMPCODE DS F Completion code REASON DS F Reason code qualifying COMPCODE