Difference between revisions of "Open List of Messages (QGYOLMSG)"

From MidrangeWiki
Jump to: navigation, search
m (DaveLClarkI moved page QGYOLMSG — Open List of Messages to Open List of Messages (QGYOLMSG): Better Indexing (too many Q's))
(Summary)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
The following is an RPG/LE fully free-form prototype for the IBM QGYOLMSG API to open a list of messages for a user or from a specified message queue.
 
The following is an RPG/LE fully free-form prototype for the IBM QGYOLMSG API to open a list of messages for a user or from a specified message queue.
 +
 +
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/QGYOLMSG.htm Open List of Messages (QGYOLMSG) API] (right-click to open link in a new tab).
 +
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QGYOLMSG API ==
 
== Prototype for the QGYOLMSG API ==
Line 27: Line 31:
  
 
== References ==
 
== References ==
* [[ApiErrC — API Error Code]]
+
* [[API Error Code Structure (ApiErrC)]]
* [[QGYGTLE — Get List Entries]]
+
* [[Get List Entries (QGYGTLE)]]
* [[QGYCLST — Close List]]
+
* [[Close List (QGYCLST)]]

Latest revision as of 11:53, 17 December 2018

Summary

The following is an RPG/LE fully free-form prototype for the IBM QGYOLMSG API to open a list of messages for a user or from a specified message queue.

For more information on this API, visit Open List of Messages (QGYOLMSG) API (right-click to open link in a new tab).

By Dave Clark

Prototype for the QGYOLMSG API

//******************************************************************************
// IBM API to Open a List of Msg Queue Messages
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/QGYOLMSG.htm
//******************************************************************************
/include qsysinc/qrpglesrc,qgyolmsg         // QGYOLMSG API data structures
dcl-pr IBMAPI_ListMsgQueMessages  extpgm('QGYOLMSG');
  MsgQueRcvr            likeds(QGYORV00)    options(*varsize);
  MsgQueRLen            int(10)   const;
  MsgQueLstI            likeds(QGYOLI00)    options(*varsize);
  MsgQueMCnt            int(10)   const;
  MsgQueSort            char(1)   const;
  MsgQueMSel            likeds(QGYOMSI00)   options(*varsize);
  MsgQueMSLn            int(10)   const;
  MsgQueQueI            char(21)  const;
  MsgQueQUsed           char(44);
  MsgQueErrC            likeds(ApiErrC)     options(*varsize);
end-pr;

References