Difference between revisions of "Open List of Spooled Files (QGYOLSPL)"

From MidrangeWiki
Jump to: navigation, search
(Created page with "Category:API Category:RPG_Prototypes == Summary == The following is an RPG/LE fully free-form prototype for the IBM QGYOLSPL API to open a list of spooled files on th...")
 
(Summary)
 
(3 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 QGYOLSPL API to open a list of spooled files on the system.  The list can be filtered by users, output queues, form types, user data values, statuses, printers, or specific jobs.
 
The following is an RPG/LE fully free-form prototype for the IBM QGYOLSPL API to open a list of spooled files on the system.  The list can be filtered by users, output queues, form types, user data values, statuses, printers, or specific jobs.
 +
 +
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qgyolspl.htm Open List of Spooled Files (QGYOLSPL) API] (right-click to open link in a new tab).
 +
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QGYOLSPL API ==
 
== Prototype for the QGYOLSPL API ==
Line 28: Line 32:
  
 
== 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 16:53, 17 December 2018

Summary

The following is an RPG/LE fully free-form prototype for the IBM QGYOLSPL API to open a list of spooled files on the system. The list can be filtered by users, output queues, form types, user data values, statuses, printers, or specific jobs.

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

By Dave Clark

Prototype for the QGYOLSPL API

//******************************************************************************
// IBM API to Open a List of Spooled File information
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qgyolspl.htm
//******************************************************************************
/include qsysinc/qrpglesrc,qgyolspl         // QGYOLSPL API data structures
dcl-pr IBMAPI_OpenSpooledFileList extpgm('QGYOLSPL');
  SplRcvrVar            likeds(QGYV020000)  options(*varsize);
  SplRVarLen            int(10)   const;
  SplListInf            likeds(QGYOLI02)    options(*varsize);
  SplRtnRCnt            int(10)   const;
  SplSortInf            likeds(QGYOSD)      options(*varsize);
  SplFltrInf            likeds(QGYF0200)    options(*varsize);
  SplJobName            char(26)  const;
  SplListFmt            char(8)   const;
  SplErrCode            likeds(ApiErrC)     options(*varsize);
// optional parm group
  SplFltrFmt            char(8)   const     options(*nopass);
end-pr;

References