Home
PL/I invocation
call MQGET (Hconn, Hobj, MsgDesc, GetMsgOpts, BufferLength, Buffer, DataLength, CompCode, Reason);Declare the parameters as follows:
dcl Hconn fixed bin(31); /* Connection handle */ dcl Hobj fixed bin(31); /* Object handle */ dcl MsgDesc like MQMD; /* Message descriptor */ dcl GetMsgOpts like MQGMO; /* Options that control the action of MQGET */ dcl BufferLength fixed bin(31); /* Length in bytes of the Buffer area */ dcl Buffer char(n); /* Area to contain the message data */ dcl DataLength fixed bin(31); /* Length of the message */ dcl CompCode fixed bin(31); /* Completion code */ dcl Reason fixed bin(31); /* Reason code qualifying CompCode */
Home