MQGET()

The MQGET subroutine retrieves messages from a local queue that has been opened using the MQOPEN subroutine.

Syntax

call MQGET(Hconn, HObj, MsgDesc, GetMsgOpts, Blen, Buff, Dlen, CompCode, Reason)

Parameters

Parameter Data Transfer Description
Hconn inbound Connection handle.
Hobj inbound Object Descriptor Handle.
MsgDesc inbound Message Descriptor.
GetMsgOpts inbound Options controlling action of MQGET.
Blen inbound Length of message in Buff.
Buff outbound Message Data.
Dlen outbound Data Length.
CompCode outbound Completion Code (MSQCC_OK|MSQCC_WARNING| MSQCC_FAILED).
Reason outbound Reason code for qualifying CompCode.