CL Command Reference - ENDWTR
CL Command List > ENDWTR Reference
Description:
The End Writer (ENDWTR) command ends the specified spooling writer and makes its associated output device available to the system. The writer can be ended immediately or in a controlled manner. If ended immediately, the writer stops writing the file and the file is made available again on the output queue. If ended in a controlled manner, the writer finishes writing the current file (or a copy of a file), or it finishes printing a page of the file, before it is ended.
Examples:
ENDWTR WTR(PRINTER)
This command stops the writer named PRINTER at the end of the spooled file whose output is being printed, and then releases the device to the system.