Command reference / spool
CHGSPLFA
Change Spooled File Attributes
Changes attributes of a spooled file while it is on an output queue, such as its output queue, form type, copies, page range, restart page, schedule, save setting, and diskette format. The changes affect only the current processing of the file; the next time the job produces the file, its attributes come from the device file, the program, and any overrides. If the file is being produced on an output device, only COPIES, RESTART, and SAVE can be changed. If the file is held because of spooling attribute errors, this command can fix them so a writer can produce the file.
Allowed environments: *ALL.
Positional parameters: 3.
Parameters
FILE
Spooled file
Specifies the spooled file whose attributes are changed. This is a required parameter.
Suggested / special values:
*SELECT
*SELECT- All spooled files that match the SELECT values are changed. Mutually exclusive with JOB, SPLNBR, JOBSYSNAME, or CRTDATE.
JOB
Job name
Specifies the job that created the spooled file, as name, user, and number.
Suggested / special values:
*
*- The job that created the spooled file issued this command.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job name
Job name
User
User
Number
Number
SPLNBR
Spooled file number
Specifies the unique number of the spooled file in the job whose attributes are changed.
Suggested / special values:
*ONLY, *LAST, *ANY
*ONLY- Only one spooled file in the job has the specified name, so the number is not needed.
*LAST- If several spooled files have the name, the one with the highest number is changed.
*ANY- The spooled file number is not used to select the file. Use this when JOBSYSNAME or CRTDATE should take precedence.
JOBSYSNAME
Job system name
Specifies the system where the job that created the spooled file ran. Considered after the job name, user, number, file name, and spooled file number.
Suggested / special values:
*ONLY, *CURRENT, *ANY
*ONLY- There is one spooled file with the specified job, file, number, and creation values.
*CURRENT- The spooled file created on the current system with the specified values is used.
*ANY- The job system name is not used to select the file.
CRTDATE
Spooled file created
Specifies the date and time the spooled file was created. Considered after the job, file, number, and job system name values.
Suggested / special values:
*ONLY, *LAST
*ONLY- There is one spooled file with the specified values.
*LAST- The spooled file with the latest create date and time is used.
Elements in order
Creation date
Creation date
Creation time
Creation time
Suggested / special values:
*ONLY, *LAST
SELECT
Select files for
Specifies which files have their attributes changed, by user, print device, form type, user data, and ASP. Only files that meet each specified value are selected.
*CURRENT- Only files created by the user running this command are selected.
*ALL- Depends on the element: all users, any device or user output queue, all form types, any user data tag, or all ASPs per 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 ASPs 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 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 in the thread's library name space are selected.
*SYSBAS- Files in the system ASP and all basic user ASPs are selected.
*CURASPGRP- Files in the primary and secondary ASPs of the thread's ASP group are selected. An error is issued if no ASP group is associated with the thread.
DEV
Printer
Specifies the printer that prints the file.
Suggested / special values:
*SAME, *OUTQ
*SAME- The current value does not change.
*OUTQ- The file is not assigned to a specific printer. It is placed on the output queue given in OUTQ.
PRTSEQ
Print sequence
Specifies whether the file is moved to the top of the output queue as the next file to print. Mutually exclusive with SCHEDULE or OUTPTY.
Allowed values:
*SAME, *NEXT
*SAME- The file is not explicitly moved to the top.
*NEXT- The file is moved to the top of the output queue.
FORMTYPE
Form type
Specifies the type of forms used in the printer.
Suggested / special values:
*SAME, *STD
*SAME- The type of forms does not change.
*STD- The standard form type used at the system is used.
COPIES
Copies
Specifies, for spooled output only, the number of copies to print. Copies added while the file is printing are printed in addition to those already printed.
Suggested / special values:
*SAME
*SAME- The number of copies remains unchanged.
RESTART
Restart printing
Specifies the page on which to restart printing. Specifying a value while the file is printing makes the writer stop and restart at that page.
Suggested / special values:
*SAME, *STRPAGE, *ENDPAGE, *NEXT
*SAME- The restart page does not change.
*STRPAGE- The first page of the PAGERANGE is the restart page.
*ENDPAGE- The starting page to print is the ending page, so only the end page is printed.
*NEXT- The page after the last page printed is the restart page. If printing was not interrupted, the starting page is used.
VOL
Volume
Specifies, for diskette output files only, the volume identifiers of the diskettes the file is written to, in insertion order.
Suggested / special values:
*SAME, *NONE
*SAME- The volume identifiers are not changed.
*NONE- No volume identifiers are specified. The file is written to the first available diskette.
LABEL
Diskette label
Specifies, for diskette output files only, the data file identifier written on the diskette (8 characters maximum).
Suggested / special values:
*SAME
*SAME- The data file identifier remains the same.
OUTQ
Output queue
Specifies the output queue to which the spooled file is moved. Used only when moving a file from one output queue to another.
Suggested / special values:
*SAME, *DEV
*SAME- The file remains on the same output queue.
*DEV- The output queue associated with the printer device for the file is used.
*LIBL- All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB- The current library for the job is used to locate the output queue. If none, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Output queue
Output queue
Library
Library
Suggested / special values:
*LIBL, *CURLIB
FILESEP
File separators
Specifies the number of separator pages (0-9) produced at the beginning of each file.
Suggested / special values:
*SAME
*SAME- The number of separator pages does not change.
PAGERANGE
Page range to print
Specifies the page range to print for each copy of the file. Ignored by diskette writers when printer spooled files are redirected.
*SAME- The starting or ending page does not change.
*ENDPAGE- The starting page is the ending page, so only the ending page is printed.
*END- The last page of the file is the ending page to print.
Elements in order
Starting page
Starting page
Suggested / special values:
*SAME, *ENDPAGE
Ending page
Ending page
Suggested / special values:
*SAME, *END
SCHEDULE
File becomes available
Specifies when the spooled file is made available to the writer.
Allowed values:
*SAME, *JOBEND, *FILEEND, *IMMED
*SAME- The schedule attribute does not change.
*JOBEND- The file is available only after the entire job completes.
*FILEEND- The file is available as soon as it is closed in the program.
*IMMED- The file is available as soon as it is opened in the program.
SAVE
Save file
Specifies whether the spooled file is saved after it has been written to an output device.
Allowed values:
*SAME, *NO, *YES, *IMMED
*SAME- The save attribute does not change.
*NO- The file data is not held on the output queue after it is produced.
*YES- The file data is held until the file is deleted. After it is produced, copies are set to 1 and the status changes from WTR to SAV.
*IMMED- The status changes to SAV immediately, without producing the file. If the file is being produced or PRTSEQ(*NEXT) is specified, SAVE(*YES) is used.
EXPDATE
Expiration date for file
Specifies the expiration date. The spooled file expires at 23:59:59 system local time on that date, after which DLTEXPSPLF can remove it.
Suggested / special values:
*SAME, *NONE, *DAYS
*SAME- The expiration date does not change.
*NONE- No expiration date is specified.
*DAYS- The expiration date is calculated from the DAYS parameter.
DAYS
Days until file expires
Specifies the number of days (1-366) to keep the spooled file. Required when EXPDATE is *DAYS and not allowed otherwise.
OUTPTY
Output priority
Specifies the output priority for spooled output produced by this job, from 1 (highest) to 9 (lowest).
Suggested / special values:
*SAME, *JOB
*SAME- The current value does not change.
*JOB- The output priority of the job that created the spooled file is used.
USRDTA
User data
Specifies, for spooled output, user-specified data (up to 10 characters) that identifies the file.
Suggested / special values:
*SAME
*SAME- The current value does not change.
ALIGN
Align page
Specifies whether to verify forms alignment on this file. Used only by printer writers started with ALIGN(*FILE).
Allowed values:
*SAME, *NO, *YES
*SAME- The current value does not change.
*NO- Forms alignment is not verified.
*YES- Forms alignment is verified.
PRTQLTY
Print quality
Specifies the print quality. Not all printers support this parameter.
Allowed values:
*SAME, *STD, *DEVD, *DRAFT, *NLQ, *FASTDRAFT
*SAME- The print quality remains the same.
*STD- Standard quality.
*DRAFT- Draft print quality.
*NLQ- Near letter quality.
*DEVD- The default print quality for the printer.
*FASTDRAFT- Higher speed and lower quality than *DRAFT.
FORMFEED
Form feed
Specifies the form feed attachment used for this spooled file. Not all printers support this parameter.
Allowed values:
*SAME, *DEVD, *CONT, *CUT, *AUTOCUT, *CONT2
*SAME- The value does not change.
*DEVD- Forms are fed as specified in the printer device description.
*CONT- Continuous forms are used. The tractor feed attachment must be present.
*CONT2- Continuous forms are fed from the secondary tractor feed attachment.
*CUT- Single-cut sheets are used and must be loaded manually.
*AUTOCUT- Single-cut sheets are fed automatically. The sheet-feed attachment must be attached.
DRAWER
Source drawer
Specifies the source drawer used when single-cut sheets are fed automatically (FORMFEED(*AUTOCUT)).
Suggested / special values:
*SAME, *E1, *FORMDF
*SAME- The value does not change.
*E1- Envelopes are fed from the envelope drawer on the sheet-feed paper handler.
*FORMDF- The form definition specifies the drawer.
FIDELITY
Print fidelity
Specifies the print fidelity maintained for this file.
Allowed values:
*SAME, *ABSOLUTE, *CONTENT
*SAME- The print fidelity does not change.
*ABSOLUTE- The file is printed exactly as intended. Printing stops if a data stream error is found.
*CONTENT- Data stream errors are overridden if possible and printing continues.
DUPLEX
Print on both sides
Specifies whether output is printed on one or both sides of the paper.
Allowed values:
*SAME, *NO, *YES, *TUMBLE, *FORMDF
*SAME- The duplex value does not change.
*NO- Output is printed on one side.
*YES- Output is printed on both sides, with the top of each page at the same end of the sheet.
*TUMBLE- Output is printed on both sides, with the top of one page at the opposite end from the other. Usually used for output bound at the top.
*FORMDF- The duplex value in the form definition is used. Valid only for *AFPDS, *AFPDSLINE, or *LINE printer device types.
MULTIUP
Pages per side
Specifies, for spooled files, whether multiple pages of output print on each physical page. Used only for *SCS, *IPDS, or *AFPDS printer device types.
Suggested / special values:
*SAME
*SAME- The number of pages per physical page does not change.
PAGDFN
Page definition
Specifies the page definition used to format line data. Requires device type *AFPDSLINE, *LINE, or *USERASCII.
Suggested / special values:
*SAME, *NONE
*SAME- The value does not change.
*NONE- No page definition is specified. An inline page definition is built from the print file parameters.
*LIBL- All libraries in the library list are searched until the first match is found.
*CURLIB- The current library for the thread is searched. If none, QGPL is searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Page definition
Page definition
Library
Library
Suggested / special values:
*LIBL, *CURLIB
FORMDF
Form definition
Specifies the form definition used when printing the file. It is located inline with the file or in a library.
Suggested / special values:
*SAME, *NONE, *DEVD, *INLINE, *INLINED
*SAME- The value does not change.
*NONE- No form definition is used. An inline form definition is built from the print file parameters.
*DEVD- The form definition name is specified in the printer device description.
*INLINE- The form definition is searched for inline. If none exists, the file does not print.
*INLINED- The form definition is searched for inline. If none exists, the *DEVD form definition is used.
*LIBL- All libraries in the library list are searched until the first match is found.
*CURLIB- The current library for the thread is searched. If none, QGPL is searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Form definition
Form definition
Library
Library
Suggested / special values:
*LIBL, *CURLIB
AFPCHARS
AFP Characters
Specifies one or more AFP characters (coded fonts) used with line data and a page definition.
Suggested / special values:
*SAME, *NONE
*SAME- The value does not change.
*NONE- No AFP characters (coded fonts) are specified.
FRONTOVL
Front side overlay
Specifies the overlay printed on the front side of the page and where on the page to place it.
*NONE- No overlay is used.
*SAME- The front overlay value does not change.
*LIBL- All libraries in the library list are searched until the first match is found.
*CURLIB- The current library for the job is used to locate the overlay. If none, QGPL is used.
BACKOVL
Back side overlay
Specifies the object containing the overlay printed on the back side of the page, and its offset from the point of origin. Used only for *SCS or *IPDS printer devices.
*FRONTOVL- The value specified for FRONTOVL is used.
*NONE- No overlay is used.
*SAME- The back overlay value does not change.
*LIBL- All libraries in the library list are searched until the first match is found.
*CURLIB- The current library for the job is used to locate the overlay. If none, QGPL is used.
*NOCONSTANT- The constant back function is not performed.
*CONSTANT- The constant back function is performed, printing overlays on generated blank constant forms. Offsets are ignored.
USRDFNOPT
User defined option
Specifies, for spooled output only, up to four user-defined options used by applications that process spooled files.
Suggested / special values:
*SAME, *NONE
*SAME- The value does not change.
*NONE- No user-defined options are specified.
USRDFNDTA
User Defined Data
Specifies, for spooled output only, user-defined data used by applications that process spooled files.
Suggested / special values:
*SAME, *NONE
*SAME- The value does not change.
*NONE- No user-defined data is specified.
USRDFNOBJ
User defined object
IPDSPASTHR
IPDS pass through
Allowed values:
*SAME, *DEVD, *NO, *YES
FNTRSL
Font resolution for formatting
Suggested / special values:
*SAME, *DEVD, *SEARCH
EXCHTYPE
Diskette file exchange type
Allowed values:
*SAME, *STD, *BASIC, *H, *I
CODE
Code
Allowed values:
*SAME, *EBCDIC, *ASCII
Generated from os/cl/catalog/CHGSPLFA.json and os/cl/help/CHGSPLFA.json.