Command reference / spool
HLDSPLF
Hold Spooled File
Stops the specified spooled file from additional processing by a spooled writer. If the file is being produced on an output device, the writer stops processing it and gets the next file. When the file is released and selected for output, it is processed again from the beginning. If multiple copies were being produced when it was held, the incomplete copy is produced from the beginning again and any remaining copies follow it.
Allowed environments: *ALL.
Positional parameters: 3.
Parameters
FILE
Spooled file
Specifies the spooled file to hold. This is a required parameter. Holds all spooled files that match the SELECT values when *SELECT is specified; *SELECT is mutually exclusive with JOB, SPLNBR, JOBSYSNAME, and CRTDATE.
Suggested / special values:
*SELECT
*SELECT- All spooled files that meet the SELECT values are held.
JOB
Job name
Specifies the job that created the file being held. The job name can be qualified with a user name and a system-assigned job number (000000-999999).
Suggested / special values:
*
*- The job that issued this Hold Spooled File command is the job that produced the 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, created by the specified job, that has the specified file name. Also accepts 1-999999.
Suggested / special values:
*ONLY, *LAST, *ANY
*ONLY- Only one spooled file in the job has the specified file name, so the number is not necessary.
*LAST- The spooled file with the highest number and the specified file name is used.
*ANY- The spooled file number is not used to select the file; useful when JOBSYSNAME or CRTDATE should take 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 name, 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, file name, 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 determine which spooled file is used.
CRTDATE
Spooled file created
Specifies the date and time the spooled file was created. This is considered after the job name, user name, job number, spooled file name, spooled file number, and job system name requirements are met.
Suggested / special values:
*ONLY, *LAST
*ONLY- There is one spooled file with the specified job, file name, number, and job system name.
*LAST- The spooled file with the latest create date and time of the specified attributes 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 held, by creating user, print device, form type, user data tag, and auxiliary storage pool. Only files that meet each of the values are selected.
*CURRENT- Only files created by the user running this command are selected.
*ALL- Files created by all users, on any device-created or user-created output queue, for all form types, with any user data tag, and for all ASPs as specified by ASPDEV.
*OUTQ- All files on any user-created output queue are selected.
*STD- Only files that specify the standard form type are selected.
*ASPDEV- Files in the ASP specified by the ASPDEV parameter are selected.
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 the 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 in the thread's ASP group are selected. An error is issued if no ASP group is associated with the thread.
OPTION
When to hold file
Specifies which option to use when holding the spooled file. Specifying an option when the file is not being written has no effect.
Allowed values:
*IMMED, *PAGEEND
*IMMED- The file is held as soon as possible.
*PAGEEND- The file is held on a page boundary.
Examples
HLDSPLF FILE(SHIPITEMS) JOB(00009/JONES/ORDER)
Withholds the spooled file SHIPITEMS, created by the job ORDER, from additional processing.
HLDSPLF FILE(QPJOBLOG) OPTION(*PAGEEND)
Holds the spooled file QPJOBLOG at a page boundary.
Generated from os/cl/catalog/HLDSPLF.json and os/cl/help/HLDSPLF.json.