Porting Central
Skip to main content

Porting Central

What Get Spooled File (GETSPLF) is

The Get Spooled File (GETSPLF) command displays an iSeries spooled file in an X Window based editor. The editor windows are scrollable, movable, and sizable. The default spooled file displayed is the the last job spooled file generated by the current job. The FILE and JOB parameters can be used to view any active spooled file a user is authorized to.

Quick Reference

GETSPLF
FILE(*LAST |Spooled File name)
Specified the name of the spooled file that is to be displayed.
JOB(* | Job Identifier)
Specifies the 26 character job identifier of the job whose job log is to be shown. The possible values are:

     * - The job whose job log is shown is the job in which this command is issued.
     job name - Specify the name of the job whose job log is shown.
SPLNBR(*LAST|Spooled File Number)
 Specifies the number of the job's spooled file that is to be displayed.

Usage Notes

The spooled file is by default displayed with the EZ editor for details on how to use EZ for simple tasks such as search forward and backward see the EZ help file

Here is an image of the Get Spooled File Command in action.  The user has performed the WRKACTJOB OUTPUT(*PRINT) command and let the Get Spooled File command default to display the last spooled file.  Note that this function could be performed in one step by the GETCMDSPLF command.

GETSPLF Image
View actual size


 

Use of EMACS


A user is allowed to choose between two editors, EZ or EMACS, when viewing a job log. The editor can be specified by entering a value at the
EDITOR parameter in the STRPTL command or at the EDITOR parameter at the CHGPTLSSNA command.

Prerequisites


The GETSPLF command requires that OS/400 PASE (option 33 of the operating system) is installed and an X server is running on the client device.

Related topics