Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Hold Writer (HLDWTR) command stops the specified writer at the end of a record, at the end of a spooled file, or at the end of a printed page. If multiple copies of a file are produced, the writer can be held at the end of the copy currently being produced. The writer is not stopped and the device is not made available to the system. The writer remains inactive until a Release Writer (RLSWTR) or End Writer (ENDWTR) command is issued. Data is not lost when the writer is held.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
WTR | Writer | Name | Required, Positional 1 |
OPTION | When to hold writer | *IMMED, *CNTRLD, *PAGEEND | Optional, Positional 2 |
Top |
Specifies the spooling writer being held.
This is a required parameter.
Top |
Specifies when the spooling writer should stop producing output.
When *IMMED is specified for printed output, the writer stops anywhere within or at the end of a print line or at the end of a complete block, which may not be at the end of a line. This is because some data records (which are blocked to improve performance) may be split in two, with the first part of a record at the end of one block and the last part of the record at the beginning of the next block. If only one copy of the file is being produced or if the last copy is being produced, the entry for the file is removed from the output queue when the output is completed.
Top |
HLDWTR WTR(PRINTER) OPTION(*CNTRLD)
This command stops the writer named PRINTER at the end of the current file. The writer is held until an RLSWTR (Release Writer) or ENDWTR (End Writer) command is issued.
Top |
*ESCAPE Messages
Top |