Command reference / spool

WRKSPLFA

Work with Spooled File Attributes

Shows the attributes of one spooled file so they can be examined and changed. The file is chosen by name, job and spooled file number, or by the SELECT values. The display lists the current attributes and option 2 changes the file with the Change Spooled File Attributes (CHGSPLFA) command.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

FILE Spooled file

Specifies the spooled file whose attributes are worked with. This is a required parameter. *SELECT selects the files that meet the SELECT values.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

Suggested / special values: *SELECT

*SELECT
The spooled file is selected with the SELECT values rather than by name and number.

JOB Job name

Specifies the job that created the spooled file. The name may be qualified with the user name and the system-assigned job number.

Type
*QUAL
Required
No
Default
*
Case
Uppercase

Suggested / special values: *

*
The job issuing the command is the job that produced the spooled file.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job name Job name

Type
*NAME
Required
No
Length
10
Case
Uppercase

User User

Type
*NAME
Required
No
Length
10
Case
Uppercase

Number Number

Type
*CHAR
Required
No
Length
6
Case
Uppercase

SPLNBR Spooled file number

Specifies the number of the spooled file that has the specified file name.

Type
*INT4
Required
No
Default
*ONLY
Range
1 to 999999
Case
Uppercase

Suggested / special values: *ONLY, *LAST, *ANY

*ONLY
Only one spooled file in the job has the specified file name.
*LAST
The highest-numbered spooled file with the specified file name is used.
*ANY
The spooled file number is not used to select the file.

JOBSYSNAME Job system name

Specifies the system where the job that created the spooled file ran.

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

Suggested / special values: *ONLY, *CURRENT, *ANY

*ONLY
There is one spooled file matching the other identifying values.
*CURRENT
The spooled file created on the current system is used.
*ANY
The job system name is not used to select the file.

CRTDATE Spooled file created

Specifies the date and time the spooled file was created, after the other identifying values are matched.

Type
*ELEM
Required
No
Default
*ONLY
Case
Uppercase

Suggested / special values: *ONLY, *LAST

*ONLY
There is one spooled file matching the other identifying values.
*LAST
The spooled file with the latest creation date and time is used.
Elements in order

Creation date Creation date

Type
*DATE
Required
No
Case
Uppercase

Creation time Creation time

Type
*TIME
Required
No
Default
*ONLY
Case
Uppercase

Suggested / special values: *ONLY, *LAST

SELECT Select files for

Specifies which group of files the spooled file is selected from, by creating user, print device, form type, user data and ASP.

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

User User

Type
*NAME
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

ASPDEV ASP device

Specifies the auxiliary storage pool device from which the spooled file is selected.

Type
*NAME
Required
No
Default
*
Length
10
Case
Uppercase

Suggested / special values: *, *SYSBAS, *CURASPGRP

*
ASPs currently part of the thread's library name space are used.
*SYSBAS
The system ASP and all defined basic user ASPs are used.
*CURASPGRP
The primary and secondary ASPs of the thread's ASP group are used.

OUTPUT Output

Specifies whether the attributes are shown at the requesting display station or printed with the job's spooled output.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
Shown for interactive jobs; printed with the job's spooled output for batch jobs.
*PRINT
Printed with the job's spooled output.

Examples

WRKSPLFA FILE(QSYSPRT) JOB(000047/QSECOFR/QPADEV0001)

Shows the attributes of spooled file QSYSPRT from that job, with option 2 to change them.

IBM command documentation

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