The statements CLOSE REEL WITH LOCK and CLOSE UNIT WITH LOCK are treated as equivalent to CLOSE REEL FOR REMOVAL.
It is documentary only.
|CLOSE Statement Format
|Record Sequential Single-Reel/Unit
|Record Sequential Multi-Reel/Unit
|Non-record Sequential Single/ Multi-Reel/Unit
|A, C, G
|CLOSE WITH LOCK
|C, E, G
|A, C, E, G
|CLOSE WITH NO REWIND record sequential only
|A, B, C
|CLOSE REEL/UNIT record sequential only
|CLOSE REEL/UNIT FOR REMOVAL record sequential only
|D, F, G
|D, F , G
|CLOSE REEL/UNIT WITH NO REWIND record sequential only
The definitions of the symbols in the table are given below. Where the definition depends on whether the file is an input, output or input-output file, alternate definitions are given; otherwise, a definition applies to input, output, and input-output files.
|A. Previous Reels/Units Unaffected
No Rewind of Current Reel
The current reel/unit is left in its current position.
|C. Close File
|D. Reel/Unit Removal
The reel or unit can be accessed again, in the proper order of reels or units in the file, if a CLOSE statement without the REEL or UNIT phrase has previously been executed for this file followed by the execution of an OPEN statement for the file.
This file cannot be opened again during this execution of this run unit.
|F. Close Reel/Unit
The current reel or analogous device is positioned at its physical beginning.
Optional Phrases Ignored
The CLOSE statement is executed as if none of the optional phrases is present.
This is an illegal combination of a CLOSE option and a file category. The results at object time are undefined.
(This option has no connection with the record or file locking used when sharing files.)
other than a DELETE FILE statement
can be executed that references that file, either explicitly or implicitly, unless an intervening OPEN statement for that file is executed.