Command reference / spool
RLSSPLF
Release Spooled File
Releases the specified spooled file on an output queue so it can be written to an output device such as a printer or diskette. The file is always produced from the beginning of the file. The command can release a spooled file held by: the HLDSPLF command; HOLD(*YES) in the device file or on an override; SAVE(*YES) in the device file, on an override, or in CHGSPLFA; SAVE(*IMMED) in CHGSPLFA; a HLDWTR command followed by RLSWTR with OPTION(*BYPASS); or an operator canceling a system request to put forms on the printer.
Allowed environments: *ALL.
Positional parameters: 3.
Parameters
FILE
Spooled file
Specifies the name of the spooled file to release so it can be written to an output device. This is a required parameter.
Suggested / special values:
*SELECT
*SELECT- All spooled files that meet the SELECT values are released. Mutually exclusive with JOB, SPLNBR, JOBSYSNAME, or CRTDATE.
JOB
Job name
Specifies the job that created the spooled file being released for additional processing.
Suggested / special values:
*
*- The job issuing this command is the job that produced the spooled file.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job name
Job name
User
User
Number
Number
SPLNBR
Spooled file number
Specifies the number of the spooled file being released.
Suggested / special values:
*ONLY, *LAST, *ANY
*ONLY- Only one spooled file in the job has the specified file name, so the number is not needed.
*LAST- The highest-numbered spooled file with the specified file name is released.
*ANY- The spooled file number is not used to select the file; the job system name or create date and time takes precedence.
JOBSYSNAME
Job system name
Specifies the name of the system where the job that created the spooled file ran. This is considered after the job, user, number, file name, and spooled file number requirements are met.
Suggested / special values:
*ONLY, *CURRENT, *ANY
*ONLY- There is one spooled file matching the job name, user, number, file name, spooled file number, and create date and time.
*CURRENT- The spooled file created on the current system with the specified attributes is used.
*ANY- The job system name is not used to select the file; the create date and time takes precedence.
CRTDATE
Spooled file created
Specifies the date and time the spooled file was created. This is considered after the other identifying parameters are matched.
Suggested / special values:
*ONLY, *LAST
*ONLY- There is one spooled file matching the other identifying values.
*LAST- The spooled file with the latest create date and time among the matches is used.
Elements in order
Creation date
Creation date
Creation time
Creation time
Suggested / special values:
*ONLY, *LAST
SELECT
Select files for
Specifies which group of files is selected to be released. Only files that meet each of the specified values are selected.
*CURRENT- Only files created by the user running this command are selected (element 1).
*ALL- Applies to each element: all users (element 1), any device- or user-created output queue (element 2), all form types (element 3), any user data tag (element 4), or the ASPs set by ASPDEV (element 5).
*OUTQ- All files on any user-created output queue are selected (element 2).
*STD- Only files with the standard form type are selected (element 3).
*ASPDEV- Files in the ASPs specified by the ASPDEV parameter are selected (element 5).
Elements in order
User
User
Suggested / special values:
*CURRENT, *ALL
Print device
Print device
Suggested / special values:
*ALL, *OUTQ
Form type
Form type
Suggested / special values:
*ALL, *STD
User data
User data
Suggested / special values:
*ALL
ASP
ASP
Suggested / special values:
*ALL, *ASPDEV
ASPDEV
ASP device
Specifies the auxiliary storage pool device name from which spooled files are selected. Valid only when the ASP element of SELECT is *ALL or *ASPDEV.
Suggested / special values:
*, *SYSBAS, *CURASPGRP
*- Files in ASPs currently part of the thread's library name space are selected.
*SYSBAS- Files in the system ASP (ASP 1) and all defined basic user ASPs (ASPs 2-32) are selected.
*CURASPGRP- Files in the primary and secondary ASPs of the thread's ASP group are selected; an error is issued if there is no ASP group.
Examples
RLSSPLF FILE(STOCK14) JOB(000047/SMITH/MASTER)
Releases spooled file STOCK14 created in job MASTER so the spooling writer can select it. The job ran under user profile SMITH and was assigned job number 000047.
Generated from os/cl/catalog/RLSSPLF.json and os/cl/help/RLSSPLF.json.