Difference between revisions of "List Spooled Files (QUSLSPL)"

From MidrangeWiki
Jump to: navigation, search
Line 5: Line 5:
  
 
The following is an RPG/LE fully free-form prototype for the IBM QUSLSPL API to create a list of spooled files into a user space.
 
The following is an RPG/LE fully free-form prototype for the IBM QUSLSPL API to create a list of spooled files into a user space.
 +
 +
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/QUSLSPL.htm List Spooled Files (QUSLSPL) API] (right-click to open link in a new tab).
  
 
== Prototype for the QUSLSPL API ==
 
== Prototype for the QUSLSPL API ==

Revision as of 16:50, 7 December 2018

Summary

The following is an RPG/LE fully free-form prototype for the IBM QUSLSPL API to create a list of spooled files into a user space.

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

Prototype for the QUSLSPL API

//******************************************************************************
// IBM API to List Spooled File information into a User Space
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/QUSLSPL.htm
//******************************************************************************
dcl-pr IBMAPI_ListSpooledFiles  extpgm('QUSLSPL');
  SplSpcName            char(20)  const;
  SplFmtName            char(8)   const;
  SplUsrName            char(10)  const;
  SplQueName            char(20)  const;
  SplFormTyp            char(10)  const;
  SplUsrData            char(10)  const;
// optional parm group 1
  SplErrCode            likeds(ApiErrC)     options(*nopass:*varsize);
// optional parm group 2
  SplJobName            char(26)  const     options(*nopass);
  SplFldKeys            int(10)   dim(28)   options(*nopass:*varsize);
  SplFKeyCnt            int(10)   const     options(*nopass);
// optional parm group 3
  SplASPName            int(10)   const     options(*nopass);
// optional parm group 4
  SplJSystem            char(8)   const     options(*nopass);
  SplStgDate            char(7)   const     options(*nopass);
  SplStgTime            char(6)   const     options(*nopass);
  SplEdgDate            char(7)   const     options(*nopass);
  SplEdgTime            char(6)   const     options(*nopass);
// optional parm group 5
  SplASPDevN            char(10)  const     options(*nopass);
end-pr;

References