|Where allowed to run: All environments (*ALL)
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.
|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|
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.
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.