Home
PL/I invocation
call MQPUT1 (Hconn, ObjDesc, MsgDesc, PutMsgOpts, BufferLength, Buffer, CompCode, Reason);Declare the parameters as follows:
dcl Hconn fixed bin(31); /* Connection handle */ dcl ObjDesc like MQOD; /* Object descriptor */ dcl MsgDesc like MQMD; /* Message descriptor */ dcl PutMsgOpts like MQPMO; /* Options that control the action of MQPUT1 */ dcl BufferLength fixed bin(31); /* Length of the message in Buffer */ dcl Buffer char(n); /* Message data */ dcl CompCode fixed bin(31); /* Completion code */ dcl Reason fixed bin(31); /* Reason code qualifying CompCode */
Home