Site icon AS400 ISeries

WRKSPLF – Work with Spooled Files

The Work with Spooled Files – WRKSPLF command displays a list of all the spooled files on the system or a selected list from them. You can choose to change, hold, delete, display, or release any or all of the entries that are displayed.

WRKSPLF – Work with Spooled Files
Advertisements

The amount of time needed to show the list of spooled files depends on the selection criteria used and the number of spooled files in the list. On a system with a large number of spooled files, it may be necessary to view a selected list of the system’s spooled files.


Select files for (SELECT)

Specifies which group of files is selected to be displayed. Positional values can be specified to select the files:


Job name (JOB)

Specifies the name of the job or jobs that created the spooled files to be selected. This parameter is allowed only if *ALL is specified for the user name element of the SELECT parameter.


Time period (PERIOD)

Specifies the period of time for selecting which spooled files are shown. This is the creation date and time of the spooled files. This parameter contains two element lists of two elements each.


ASP device (ASPDEV)

Specifies the auxiliary storage pool device from which spooled files are to be selected. This parameter is only valid if the ASP number (ASP) element of the SELECT parameter is *ALL or *ASPDEV.


Output (OUTPUT)

Specifies whether the output is displayed at a display station or printed. If the output is displayed, it is sent to the work station that entered the command.


Display format (DSPFMT)

Specifies the format and terminology to be used on the displays that result from running this command. If the System/36 display format is used, the Output (OUTPUT) parameter is ignored and the data is presented at the user’s display station.


Assistance level (ASTLVL)

Specifies which user interface to use.


Examples

Example 1: Work with All Spooled Files

WRKSPLF   SELECT(*ALL *ALL *ALL *ALL *ALL *ALL)  DSPFMT(*NORMAL)

This command displays the Work with Spooled Files panel, showing a list of all of the spooled files on the system. The terminology used is determined by the value on the SPCENV parameter in the user’s profile. The information goes to the display by default.

Example 2: Work with Selected Spooled Files

WRKSPLF   SELECT(CASMITH *ALL *ALL MEMO *ALL *ALL)

This command allows you to work with all of the spooled files on the system for the user named CASMITH and that have ‘MEMO’ specified in the user data for the spooled file.

Example 3: Work with Spooled Files by User Data

WRKSPLF   SELECT(*ALL *ALL *ALL '*SAV*' *ALL *ALL)

This command allows you to work with all of the spooled files on the system that have ‘*SAV’ as the first four characters specified in the user data for the spooled file.

Advertisements

Example 4: Work with Spooled Files by Date

WRKSPLF   SELECT(*ALL)
          PERIOD(('11:30:00' '01/12/2005') ('20:00:00' '01/12/2005'))

This command allows you to work with all of the spooled files on the system that have a create date and time between 11:30 AM and 8:00 PM on January 12, 2005.

Source : IBM

23 Most Useful AS400 Commands

Exit mobile version