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.
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.
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
User
User
Number
Number
SPLNBR
Spooled file number
Specifies the number of the spooled file that has the specified file name.
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.
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.
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
Creation time
Creation time
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.
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
ASPDEV
ASP device
Specifies the auxiliary storage pool device from which the spooled file is selected.
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.
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.
Generated from os/cl/catalog/WRKSPLFA.json and os/cl/help/WRKSPLFA.json.