A.
Previous Reels/Units Unaffected
|
|
-
Input Files and Input-output Files:
All reels/units in the file prior to the current reel/unit are processed except those reels/units controlled by a prior CLOSE REEL/UNIT statement. If the current reel/unit is not the last in the file, the reels/units in the file following the current one are not processed.
-
Output Files:
All reels/units in the file prior to the current reel/unit are processed except those reels/units controlled by a prior CLOSE REEL/UNIT statement.
|
B.
No Rewind of Current Reel
The current reel/unit is left in its current position.
|
C. Close File
|
|
-
Input Files and Input-output Files (Sequential Access Mode):
If the file is at the end and label records are specified for the file, the labels are processed according to the operating system label convention. The behavior of the CLOSE statement when label records are specified but not present, or when label records are not specified but are present, is undefined. If the file is at the end and label records are not specified for the file, label processing does not take place, but other closing operations dependent on the run-time system are executed. If the file is not at the end, the closing operations dependent on the run-time system are executed, but there is no ending label processing.
-
Input Files and Input-output Files (Random or Dynamic Access Mode); Output Files (Random, Dynamic or Sequential Access Mode):
If label records are specified for the file, the labels are processed according to the operating system standard label convention. The behavior of the CLOSE statement when label records are specified but not present, or when label records are not specified but are present, is undefined. If label records are not specified for the file, label processing does not take place, but other closing operations dependent on the run-time system are executed.
|
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.
|
E.
File Lock
This file cannot be opened again during this execution of this run unit.
|
F.
Close Reel/Unit
|
|
-
Input Files and Input-output Files (Reel/Unit Media):
- If the current reel/unit is the last or only reel/unit for the file, no reel/unit swap takes place; the current volume pointer remains unchanged, and the file position indicator is set to indicate that no next reel/unit exists.
- If another reel/unit exists for the file, a reel/unit swap occurs, the current volume pointer is updated to point to the next reel/unit existing in the file, the standard beginning reel/unit label procedure is executed, and the file position indicator is set to one less than the number of the first record existing on the new current volume. If no data records exist for the current volume, another reel/unit swap occurs.
-
Output Files (Reel/Unit Media):
The following operations take place:
- Execution of the standard ending reel/unit label procedure.
- A reel/unit swap.
- Execution of the standard beginning reel/unit label procedure.
- The next executed WRITE statement that references that file directs the next logical data record to the next reel/unit of the file.
-
Input Files, Input-output Files, and Output Files (Non-Reel/Unit Media):
Execution of this statement is considered successful. The file remains in the open mode, the file position indicator remains unchanged, and no action takes place except as specified in General Rule 4.
|
G.
Rewind
The current reel or analogous device is positioned at its physical beginning.
|
H.
Optional Phrases Ignored
The CLOSE statement is executed as if none of the optional phrases is present.
|
X.
Illegal
This is an illegal combination of a CLOSE option and a file category. The results at object time are undefined.
|