Command reference / spool
HLDWTR
Hold Writer
Stops a spooled writer from producing output. The writer stays started but takes no more files from its output queue until it is released with RLSWTR. A file that is being written is handled according to the OPTION value: it may finish, stop at a page boundary, or return to the queue at once.
Allowed environments: *ALL.
Positional parameters: 2.
Parameters
WTR
Writer
Specifies the writer to hold. This is a required parameter.
Suggested / special values:
*ALL, *PRT, *RMT, *SYSVAL
*ALL- All writers are held.
*PRT- All printer writers are held.
*RMT- All remote writers are held.
*SYSVAL- The writer started to the system default printer (QPRTDEV) is held.
OPTION
When to hold writer
Specifies when the writer stops writing.
Allowed values:
*CNTRLD, *IMMED, *PAGEEND
*IMMED- The writer stops immediately after the last record of the current block is written.
*CNTRLD- The writer stops at the end of the copy being written.
*PAGEEND- The writer is held at the end of a page (printer writers only).
Examples
HLDWTR WTR(PRT01)
Holds writer PRT01 when the spooled file it is writing finishes.
HLDWTR WTR(PRT01) OPTION(*IMMED)
Holds writer PRT01 at once so the operator can align the forms.
Generated from os/cl/catalog/HLDWTR.json and os/cl/help/HLDWTR.json.