27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DRAIN UR<br />

Usage Notes<br />

Responses<br />

1. Use the DRAIN comm<strong>and</strong> to bring the spooling system or a specified device to<br />

a controlled halt. You would normally drain all unit record devices before a<br />

system shutdown, <strong>and</strong> drain a printer before you change the contents of the<br />

UCS printer buffer.<br />

2. A device is drained immediately if it is not active when the DRAIN comm<strong>and</strong> is<br />

issued; otherwise, it is drained when processing of the current file has<br />

completed. You can restart a drained device by issuing the START comm<strong>and</strong>. If<br />

you enter a START comm<strong>and</strong> to a device before draining has been completed,<br />

the device does not enter drained status, <strong>and</strong> it continues processing.<br />

3. If you specify more than one real device number, execution of the DRAIN<br />

comm<strong>and</strong> terminates upon encountering an nonvalid real device number. None<br />

of the remaining devices are drained.<br />

4. For a printer ID, the virtual machine associated with the printer ID processes the<br />

DRAIN comm<strong>and</strong>. Therefore, the options given on the DRAIN comm<strong>and</strong> must<br />

be valid for the virtual machine that is doing the processing.<br />

When you enter the DRAIN, DRAIN PRINTER, DRAIN ALL, DRAIN UR, DRAIN<br />

UR PRINTER, or DRAIN UR ALL comm<strong>and</strong>s, all printers associated with all<br />

prtids are drained.<br />

The following section lists the printer, punch, <strong>and</strong> reader responses that occur when<br />

drained status has been attained. An explanation of the various options that appear<br />

in the responses follows the last response.<br />

Inactive Printer Responses:<br />

For every inactive printer that attains the drained status, the first line of the<br />

response is the same. The second line varies based upon printer type.<br />

PRT rdev DRAINED userid CLASS c ...<br />

PRT rdev FORM form {AUTO } {SEP } {NO3800 } [DEFFCB] LIMIT [NONE]<br />

{MANUAL} {NOSEP} {BEG3800} [FILEFCB] [nnnnnnnnnn ]<br />

{SETUP } {ANY3800}<br />

For 3800 printers the third line is:<br />

PRT rdev FLASH name IMAGE imagelib CHARS name FCB {name} {HOLD } LPP nnn<br />

{ 6 } {PURGE}<br />

{ 8 }<br />

{ 10 }<br />

{ 12 }<br />

For impact printers the third line is:<br />

PRT rdev {NOFOLD} IMAGE imagelib CHARS chars [FCB name] [INDEX nn] LPP nnn<br />

{FOLD }<br />

The fourth line of the response for all printers is:<br />

PRT rdev DEST {dest1} DEST {dest2 } DEST {dest3 } DEST {dest4 }<br />

{OFF } {- NONE -} {- NONE -} {- NONE -}<br />

The last line of the response for 3800 printers is:<br />

PRT rdev {AFP } {MARK }<br />

{NOAFP} {NOMARK}<br />

344 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong><br />

The last line of the response for impact printers is:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!