Command reference / spool
WRKSPLF
Work with Spooled Files
Displays a list of all spooled files on the system, or a selected list of them. You can change, hold, delete, display, or release any or all of the displayed entries. Performance depends on the selection criteria and the number of spooled files; on a system with many spooled files, view a selected list instead.
Allowed environments: *ALL.
Positional parameters: 2.
Parameters
SELECT
Select files for
Specifies which group of files is displayed, by user, print device, form type, user data, ASP, and spooled file name. Only files that meet each of the values are selected.
*CURRENT- User element: only files created by the user running the command are selected.
*ALL- Applies to each element: for the user element, files from all users; for the other elements, files with any value.
*OUTQ- Print device element: all files on any user-created output queue.
*STD- Form type element: only files that specify the standard form type.
*ASPDEV- ASP element: files specified in the ASPDEV parameter are selected.
Elements in order
User
User
Suggested / special values:
*CURRENT, *ALL
Print device
Print device
Suggested / special values:
*ALL, *OUTQ
Form type
Form type
Suggested / special values:
*ALL, *STD
User data
User data
Suggested / special values:
*ALL
ASP
ASP
Suggested / special values:
*ALL, *ASPDEV
Spooled file
Spooled file
Suggested / special values:
*ALL
DSPFMT
Display format
Allowed values:
*INLENV, *S36FMT, *NORMAL
JOB
Job name
Specifies the name of the job or jobs that created the spooled files to be selected. This parameter is allowed only if *ALL is specified for the user name element of SELECT.
Suggested / special values:
*ALL
*ALL- Spooled files created by all jobs are included.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job name
Job name
User
User
Suggested / special values:
*ALL
Number
Number
Suggested / special values:
*ALL
PERIOD
Time period
Elements in order
Start time and date
Start time and date
Beginning time
Beginning time
Suggested / special values:
*AVAIL
Beginning date
Beginning date
Suggested / special values:
*BEGIN, *CURRENT
End time and date
End time and date
Ending time
Ending time
Suggested / special values:
*AVAIL
Ending date
Ending date
Suggested / special values:
*END
ASPDEV
ASP device
Specifies the auxiliary storage pool device from which spooled files are selected. This parameter is valid only if the ASP element of SELECT is *ALL or *ASPDEV.
Suggested / special values:
*, *SYSBAS, *CURASPGRP
*- Files in the ASPs currently part of the thread's library name space.
*SYSBAS- Files in the system ASP (ASP 1) and all defined basic user ASPs (ASPs 2-32).
*CURASPGRP- Files in the primary and secondary ASPs of the thread's ASP group. An error is issued if no ASP group is associated with the thread.
OUTPUT
Output
Specifies whether the output is displayed at a display station or printed. Displayed output is sent to the work station that entered the command.
Allowed values:
*, *PRINT
*- Displayed if requested by an interactive job, or printed if requested by a batch job.
*PRINT- The output is printed. Not allowed in a System/36 environment.
ASTLVL
Assistance level
Allowed values:
*PRV, *USRPRF, *BASIC, *INTERMED
Examples
WRKSPLF SELECT(CASMITH *ALL *ALL MEMO *ALL *ALL)
Lets you work with all spooled files for user CASMITH that have MEMO specified in their user data.
Generated from os/cl/catalog/WRKSPLF.json and os/cl/help/WRKSPLF.json.