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.

CLOSE<br />

available for processing. You can transfer a file to another user by using the<br />

TO oper<strong>and</strong> of the TRANSFER or CHANGE comm<strong>and</strong>s.<br />

Note: An external security manager, if installed, may prevent you from<br />

transferring a spool file to another user unless you are specifically<br />

authorized to enter the TRANSFER <strong>and</strong> CHANGE comm<strong>and</strong>s. For<br />

additional information, contact your security administrator.<br />

7. You can specify a file name <strong>and</strong> file type to help you identify a file <strong>and</strong> its<br />

contents. The file name <strong>and</strong> file type you assign have no effect on the way<br />

CMS names the file if it is read using the CMS READCARD or CMS DISK<br />

LOAD comm<strong>and</strong>s.<br />

8. If you are closing a reader, the file that is being processed is purged unless<br />

HOLD or KEEP is in effect for the device or for the file. Use the appropriate<br />

CLOSE comm<strong>and</strong> option to override the effect of HOLD, NOHOLD, KEEP, or<br />

NOKEEP established for the reader or for the file.<br />

9. If an input spool file has been only partially read (that is, your virtual machine<br />

did not get an end-of-file indication), you must enter a CLOSE READER<br />

comm<strong>and</strong>.<br />

10. If the TO option is used to direct a file to a new user, the spool file ID number<br />

changes. The new number is obtained from the recipient’s pool of available<br />

IDs. Thus, if user SAM enters CLOSE READER TO HARRY, he gets a<br />

response: RDR 0003 SENT TO HARRY RDR AS 0018. HARRY now has a file<br />

number 18.<br />

If an external security manager is installed on your system, you may not be<br />

authorized to transfer a spool file to another user with the CLOSE TO<br />

comm<strong>and</strong>. For additional information, contact your security administrator.<br />

11. The disposition of a spool file that is to be processed on a real unit record<br />

device depends upon the resolution of HOLD, CONT, <strong>and</strong> KEEP status as<br />

implied by the device using the SPOOL <strong>and</strong> CLOSE comm<strong>and</strong>s.<br />

For example, suppose your virtual printer is spooled CONT, <strong>and</strong> you enter<br />

close prt class z. Since you did not specify the CLOSE oper<strong>and</strong> EOF, the<br />

file does not become available for processing on a real printer.<br />

After completion of the CLOSE comm<strong>and</strong>, <strong>CP</strong> checks the hold status of the file<br />

to determine whether the files you closed can be processed. Thus, if hold is in<br />

effect for any of the closed files because you specified HOLD on the CLOSE<br />

comm<strong>and</strong> or because hold was set for the device using the SPOOL comm<strong>and</strong>,<br />

the file is not processed.<br />

For readers only, the net effect of file status, device options, <strong>and</strong> the CLOSE<br />

comm<strong>and</strong> overrides is shown in Table 5.<br />

Table 5. Effect of File Status, Device Options, <strong>and</strong> CLOSE Comm<strong>and</strong> Options on Reader<br />

Files<br />

Options in Effect<br />

for the Input File<br />

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

System Action<br />

NOKEEP/NOHOLD The file is purged.<br />

NOKEEP/HOLD The file is not purged <strong>and</strong> remains available for processing<br />

in HOLD status.<br />

KEEP/NOHOLD The file is not purged. It is set in NOHOLD/KEEP status <strong>and</strong><br />

is not available for processing.<br />

KEEP/HOLD The file is not purged. It is set in HOLD/KEEP status <strong>and</strong> is<br />

not available for processing.

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

Saved successfully!

Ooh no, something went wrong!