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.

Type
*ELEM
Required
No
Case
Uppercase
*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

Type
*GENERIC
Required
No
Default
*CURRENT
Length
10
Case
Uppercase

Suggested / special values: *CURRENT, *ALL

Print device Print device

Type
*NAME
Required
No
Default
*ALL
Length
10
Case
Uppercase

Suggested / special values: *ALL, *OUTQ

Form type Form type

Type
*CHAR
Required
No
Default
*ALL
Length
50
Case
Uppercase

Suggested / special values: *ALL, *STD

User data User data

Type
*CHAR
Required
No
Default
*ALL
Length
50
Case
Uppercase

Suggested / special values: *ALL

ASP ASP

Type
*INT4
Required
No
Default
*ALL
Range
1 to 32
Case
Uppercase

Suggested / special values: *ALL, *ASPDEV

Spooled file Spooled file

Type
*GENERIC
Required
No
Default
*ALL
Length
10
Case
Uppercase

Suggested / special values: *ALL

DSPFMT Display format

Type
*CHAR
Required
No
Default
*INLENV
Length
7
Case
Uppercase

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.

Type
*QUAL
Required
No
Default
*ALL
Case
Uppercase

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

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

User User

Type
*GENERIC
Required
No
Default
*ALL
Length
10
Case
Uppercase

Suggested / special values: *ALL

Number Number

Type
*CHAR
Required
No
Default
*ALL
Length
6
Case
Uppercase

Suggested / special values: *ALL

PERIOD Time period

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

Start time and date Start time and date

Type
*CHAR
Required
No
Length
256
Case
Uppercase

Beginning time Beginning time

Type
*TIME
Required
No
Default
*AVAIL
Case
Uppercase

Suggested / special values: *AVAIL

Beginning date Beginning date

Type
*DATE
Required
No
Default
*BEGIN
Case
Uppercase

Suggested / special values: *BEGIN, *CURRENT

End time and date End time and date

Type
*CHAR
Required
No
Length
256
Case
Uppercase

Ending time Ending time

Type
*TIME
Required
No
Default
*AVAIL
Case
Uppercase

Suggested / special values: *AVAIL

Ending date Ending date

Type
*DATE
Required
No
Default
*END
Case
Uppercase

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.

Type
*NAME
Required
No
Default
*
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

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

Type
*CHAR
Required
No
Default
*PRV
Length
9
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/WRKSPLF.json and os/cl/help/WRKSPLF.json.