Published on System iNetwork (http://systeminetwork.com)
APIs by Example: List Spooled Files (QUSLSPL) API
By tzura
Created Mar 27 2003 - 05:00

The List Spooled Files (QUSLSPL) API is similar to the Work with Spooled Files (WRKSPLF) and the Work with Job (WRKJOB OPTION(*SPLF)) commands. QUSLSPL generates a list of spooled files into a user space. You can filter the spool files by users, output queues, form types, user-specified data values, job, or stored in an auxiliary storage pool. There are several utilities that show how to use QUSLSPL in various RPG, Cobol, and C:

RPG IV service program SplLst, by Julian Monnypenny
"Listing Spool File Entries - Simplified!"
(You must be an iSeries Network professional member to access this article.) http://www.iseriesnetwork.com/features/newmf/Article.cfm?ArticleID=3011 [1]

RPG IV service program LSTSPLF, by Thomas Raddatz
http://www.tools400.de/English/Freeware/Service_Programs/service_programs.html [2]

RPG IV program LSTSPLF, by Craig Rutledge
http://www.alltel.net/~craigru/jcrdown2.html#JCRSPLF_tag [3]

CMD source LUSSPLF (List Spooled Files), by Tom Liotta
http://home.earthlink.net/~tliotta/Files/Age_Spool_Files/Age_Spool_Files_README.htm [4]

Sample RPG ILE, RPG OPM, Cobol, and C example source code from IBM
System API Programming Manual
http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c4158000.pdf [5]
http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/qb3avc00/CCONTENTS [6]

More information for the QUSLSPL is available in IBM's InfoCenter at
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/QUSLSPL.htm [7].

Information for all printing APIs is at
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/print1b.htm [8].

An alternative to QUSLSPL is the QGYOLSPL API. You can read about the differences between the two APIs at
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/qgyolspl.htm [9].

© 2010 Penton Media, Inc.

Source URL: http://systeminetwork.com/node/61150

Links:
[1] http://systeminetwork.com/Article.cfm?ID=3011
[2] http://www.tools400.de/English/Freeware/Service_Programs/service_programs.html
[3] http://www.alltel.net/~craigru/jcrdown2.html#JCRSPLF_tag
[4] http://home.earthlink.net/~tliotta/Files/Age_Spool_Files/Age_Spool_Files_README.htm
[5] http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c4158000.pdf
[6] http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/qb3avc00/CCONTENTS
[7] http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/QUSLSPL.htm
[8] http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/print1b.htm
[9] http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/qgyolspl.htm