r CLOSE s. FiguLe 7 shows what happens to an input file in your virtual reader
when the CLOSE command is issued with the HOLD or NJHOLD operand in
effect. The CLOSE command can result in an input file being purged
or s3.ved. (CLOSE Command Settinq) Norm3.l EOF In /:) oF:::I" 1 ... \ ....... _.-\,4 ...... '- CLOSE) CLOSE CLOSE HOLD CLOSE NOHOLD SPOOL Command Options Set for a virtual Input Device NOHOLD File purged
File purged
File saved
File purged HOLD File saved
File saved
File saved I I ----------------------------1
File purged I ----------------------1 INote: The term "saved" means that the file is neither purged
lin HOLD st3.tus. A subsequent READ could read this file.
nor is itl I L ____ J
Figure 7. Action on CLOSE for a Virtual Input Device.
r I I 6. FiguLe 8 shows what happens to a file in your virtual output device
when the CLOSE command is issued with the HOLD, NOHaLD, CONT, and NOCONT operands in effect. SPOOL Command Options Set for a Virtual Output Device
1 (C LOSE Command
sett inq) NOHOLD NOCO}!T HOLD NOCONT NOHOLD HOLD CONT CONT CLOSE CLOSE HOLD IFile released I File held Ifor processinql IFile held I File held
iNo I I No
action
1
iNo action
1 I ac tion 1 INo action
1 CLOSE NOHOLD IFile released IFile released INo action
1 INo action
1
lfor processinglfor processinql I 1 INc is taken until you issue a SPOOL {PRTIPUN} NOCONT command. I Then vou can issue a CLOSE command to release the file for I processinq.
L
Fiqure 8. Taken on CLOSE for a Virtual Output Device Section 5. Format of CP Commands 55
CLOSE {
PRT}
{TO} {HOLD } P,UH FILE spoolidFOR userid COpy nn NOHOLD CON This response is received if: multiple copies of the file are being the file is being transferred to another user, or the
file is placed in a USER HOLD status. However, if the SET MS3 is this message is not issued even though the preceding
conditions are met. 56 IBM VM/370 CP Command Reference for General Users
Previous Page Next Page