List Spooled Files (QUSLSPL)

From MidrangeWiki
Revision as of 11:51, 17 December 2018 by DaveLClarkI (talk | contribs) (Summary)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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).

By Dave Clark

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