Listing Spool Files
August 11, 2004 Bruce Guetzkow
The code for this article is available for download.
Changing spool file attributes can be a tedious chore. IBM provides the Change Spooled File Attributes (CHGSPLFA) command to simplify this task, allowing you to select a collection of spool files based on several characteristics, but, curiously, output queue is not one of the selection criteria. The solution is the List Spooled Files API (QUSLSPL), used as a front-end to CHGSPLFA. With this API you can select spool files by any combination of user name, output queue, form type, or user data.
CREATING THE LIST
The List Spooled Files API