Porting Central
Skip to main content

Porting Central

What Get Command Spooled File (GETCMDSPLF) is

The Get Command Spooled File (GETCMDSPLF) command displays an iSeries spooled file that results from a specified command in an X Window based editor. The editor windows are scrollable, movable, and sizable. When GETCMDSPLF is run, it will prompt the user for the command named on the CMD parameter, this allows the user to specify command parameters.  GETCMDSPLF then appends the parameter "OUTPUT(*PRINT)" to the command and runs the command.  Assuming the command generates a spooled file, that file is then displayed in the EZ or EMACS editor.

Quick Reference

GETCMDSPLF
CMD(Command Name)
Specified the name of the command that GETCMDSPLF will run.
 

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 Command Spooled File Command in action.  The user has performed the GETCMDSPLF CMD(DSPLIBL) and Get Command Spooled File has appended the OUTPUT(*PRINT) parameter, run the command and is displaying the resulting spooled file using the EMACS editor.

GETCMDSPLF Image
 

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 GETCMDSPLF command requires that OS/400 PASE (option 33 of the operating system) is installed and an X window application is
running on the client device.

Related topics