Command reference / spool

DSPSPLF

Display Spooled File

Shows the data records in the specified spooled file. The records can be displayed any time an entry for the spooled file is on the output queue. The display offers functions to view different parts of the file and to scan for a character string. The SYSTOOLS.SPOOLED_FILE_DATA table function returns similar information.

Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC. Positional parameters: 3.

Parameters

FILE Spooled file

Specifies the spooled file whose records are displayed. This parameter is required.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

JOB Job name

Specifies the job that created the spooled file. Give the job name, user, and number, or use the special value to mean the job issuing this command.

Type
*QUAL
Required
No
Default
*
Case
Uppercase

Suggested / special values: *

*
The job that issued this command is the job that created 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 which of the job's spooled files with the given name is displayed.

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 name, so no number is needed.
*LAST
The spooled file with the highest number and the specified name is used.
*ANY
The number is not used to select the file, so the job system name or create date and time takes precedence.

JOBSYSNAME Job system name

Specifies the system where the job that created the spooled file ran. It is considered after the job, user, number, file name, and spooled file number.

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

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

*ONLY
Exactly one spooled file matches the job, user, number, file name, spooled file number, and create date and time.
*CURRENT
The spooled file created on the current system with the specified attributes is used.
*ANY
The job system name is not used to select the file, so the create date and time takes precedence.

CRTDATE Spooled file created

Specifies the date and time the spooled file was created. It is considered after the job, file, number, and job system name.

Type
*ELEM
Required
No
Default
*ONLY
Case
Uppercase

Suggested / special values: *ONLY, *LAST

*ONLY
Exactly one spooled file matches the other selection attributes, so no date or time is needed.
*LAST
The spooled file with the latest create date or time among the matches 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

FOLD Fold records

Specifies whether the first display wraps records longer than the display line onto more lines.

Type
*CHAR
Required
No
Default
*NO
Length
4
Case
Uppercase

Allowed values: *NO, *YES

*NO
Records are not folded, and the remaining positions of a long record are not shown.
*YES
The first record is folded onto one or more display lines when it is longer than one line.

Examples

DSPSPLF FILE(QPRINT) JOB(PAYROLL01) SPLNBR(4) FOLD(*NO)

Displays spooled file QPRINT, the fourth file produced by job PAYROLL01. Record positions beyond the display line length are truncated on the first display.

IBM command documentation

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