Difference between revisions of "Get List Entries (QGYGTLE)"

From MidrangeWiki
Jump to: navigation, search
(References)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
  
 
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qgygtle.htm Get List Entries (QGYGTLE) API] (right-click to open link in a new tab).
 
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qgygtle.htm Get List Entries (QGYGTLE) API] (right-click to open link in a new tab).
 +
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QGYGTLE API ==
 
== Prototype for the QGYGTLE API ==
Line 23: Line 25:
 
end-pr;
 
end-pr;
 
</pre>
 
</pre>
 +
 +
== Example ==
 +
See the [[Get Last Joblog Messages]] service procedure.
  
 
== References ==
 
== References ==
 
* [[API Error Code Structure (ApiErrC)]]
 
* [[API Error Code Structure (ApiErrC)]]
 
* [[Close List (QGYCLST)]] API
 
* [[Close List (QGYCLST)]] API

Latest revision as of 21:36, 17 December 2018

Summary

The following is an RPG/LE fully free-form prototype for the IBM QGYGTLE API to get entries from an open list.

For more information on this API, visit Get List Entries (QGYGTLE) API (right-click to open link in a new tab).

By Dave Clark

Prototype for the QGYGTLE API

//******************************************************************************
// IBM API to get entries from an open list
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qgygtle.htm
//******************************************************************************
dcl-pr IBMAPI_GetListEntries      extpgm('QGYGTLE');
  LstRcvVar             char(65535)         options(*varsize);
  LstRcvVarLen          int(10)   const;
  LstHandle             char(4)   const;
  LstInfo               char(80);
  LstNbrRcdRtn          int(10)   const;
  LstRtnRcdNbr          int(10)   const;
  LstErrCode            likeds(ApiErrC)     options(*varsize);
end-pr;

Example

See the Get Last Joblog Messages service procedure.

References