Display Last SPOOL File (DSPLSTSPLF)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Display Last SPOOL File (DSPLSTSPLF) command is a shortcut to view the most recently created SPOOL file for a job or for the current user. The IBM i DSPSPLF command requires the FILE(xxxxx) parameter to be specified. This is fine if you already know the SPOOL file name. However the COZTOOLS DSPLSTSPLF quickly displays the most recently created or "last" SPOOL file created in a job. The default is the current job, however you may specify any job name/number or specify JOB(*ALL). When DSPLSTSPLF JOB(*ALL) is specified, all jobs for the user profile running the DSPLSTSPLF command are searched and the most recently created SPOOL file is displayed.

Top

Parameters

Keyword Description Choices Notes
SPLFNAME SPOOL file name Name, *LAST Optional, Positional 1
JOB Job name or *ALL Single values: *, *CURRENT, *ALL
Other values: Qualified job name
Optional, Positional 2
Qualifier 1: Job name or *ALL Name
Qualifier 2: User Name
Qualifier 3: Job number 000000-999999
Top

SPOOL file name (SPLFNAME)

Specifies the SPOOL File name to be displayed. The last (most recently created) SPOOL file whose name matches the name specified for this parameter is displayed.

*LAST
The most recently created SPOOL file for the job is displayed.
name
Specify the name of any SPOOL file. NOTE: If a real SPOOL File name is specified, this command has the same functionality as the IBM i command: DSPSPLF FILE(xxxxx) SPLNBR(*LAST)
Top

Job name (JOB)

Specifies standard qualified job name to search. The default is JOB(*) meaning the current job. The special value JOB(*CURRENT) is also available to indicate the current job. The special value JOB(*ALL) means all jobs for the current user are searched for the last SPOOL file created by the user. The default value JOB(*) means only the current job is searched for the last SPOOL file created by the current user profile. If a valid job ID is specified, that last SPOOL file created in that job is displayed, regardless of the user who is associated with the job or SPOOL file.

Single values

* or *CURRENT
The last SPOOL file created during the current job is displayed. This is the default and is much faster than other options.
*ALL
The last SPOOL file created by the user in any job is displayed. Use this to search all jobs the current user has run for the most recently created (i.e, "last") SPOOL file. Using JOB(*ALL) is often slower than option options since it has to search the list of SPOOL files to locate the most recently created SPOOL file. TIP: For users with a HUGE list of SPOOL files, rather than JOB(*ALL), Try using WRKSPLF, then press Shift+F6 to go to the bottom of the SPOOL File List. Then use Option 5 to display the SPOOL file.
qualified-job-name
The last SPOOL file created for the job is displayed. The SPLFNAME (if specified) is used to search for the last SPOOL file with that name. If not SPLFNAME or SPLFNAME(*LAST) is specified, the last SPOOL file created for the identified job is displayed.
Top

Examples

None
Top

Error messages

Unknown
Top