5.20.4 LIST
The LIST command is used to obtain a list of spool files from the specified output queue.
The LIST command requires a working list with ten fields to receive the spool file information.
The fields can be of any name and size.
It is the sequence of the fields that is important.
|
Sequence
|
Suggested Name
|
Contents
|
|
1
|
NAME
|
The name of the spool file.
|
|
2
|
NUMBER
|
The spooled file number of the specified file.
|
|
3
|
JOBNAME
|
The name of the job that created the spooled file.
|
|
4
|
JOBUSER
|
The name of the user who produced the spooled file.
|
|
5
|
JOBNUMBER
|
The number of the job in the system.
|
|
6
|
STATUS
|
Status of spool file.
|
|
7
|
PAGES
|
Page count.
|
|
8
|
DATE
|
Creation date (YYYY-MM-DD).
|
|
9
|
TIME
|
Creation time (HH:MM:SS).
|
|
10
|
USERDATA
|
User data.
|
|
Syntax:
|
Command
|
Keyword
|
Value
|
Developer notes
|
|
LIST
|
LIBRARY
|
value
|
Library name.
|
|
QUEUE
|
value
|
Output queue.
|
|
USER
|
value
|
Indicates that only spool files with a JOBUSER matching this USER should be returned.
|
|
*ALL
|
Default.
|
|
USERDATA
|
value
|
Indicates that only spool files matching the USERDATA specified should be returned.
|
|
*ALL
|
Default.
|
|
FORMTYPE
|
value
|
Indicates that only spool files matching the FORMTYPE specified should be returned.
|
|
*ALL
|
Default.
|
|
Example
LIST LIBRARY(QGPL) QUEUE(QPRINTS) USER(ALICK) #WRKLST (NAME,NUMBER,JOBID,JOBUSER,JOBNUMBER,STATUS,PAGES,DTE,TME,UDATA)