4.7.4
CLOSE
The CLOSE statement terminates the processing of input and output reels,
units, and files with optional rewind and/or lock where applicable.
CLOSE
file-name-l
[l~~~TL!
] [WITH
1
~~C~WIND!
]
[, file-name-2
[1
~~~L
i ]
[WITH
1
~~C~EWIND
iJ ] ...
Each file name is the name of a file upon which the CLOSE statement operates;
it must not be the name of a sort file.
The REE L, LOCK, and NO REWIND options are applicable only to tape files.
The UNIT option is applicable only to mass storage files in the sequential
access mode. UNIT, throughout this specification means the storage device
rather than the driver or power unit. Its use in the CLOSE statement is
documentary and has the same effect as CLOSE file-name.
It is illegal to
specify CLOSE UNIT with the LOCK or NO REWIND options.
To explain CLOSE options for the various storage devices, all files are
classified as follows:
Non-reel
A file on an input or output device for which concepts of
rewinding and reels have no meaning (disk file, disk pack,
drum, reader, printer, punch, TTY, CRT)
Single-reel
A file entirely contained on one reel of tape; the reel
may contain more than one file
Multi-reel
A file contained on more than one reel of tape
A CLOSE statement with no options performs the following standard close
operations on non-reel, single-reel, or multi-reel files:
Input files:
If
the file is positioned at its end and there is an ending label
record, the ending label record is checked and the data area
is released.
If
the file is positioned at its end and there is no
ending label record, or if the file is not positioned at its end,
the data area is released but no ending label checking takes
place. An input file is positioned at its end when the AT END
imperative statement has been executed but no CLOSE statement
has yet been executed.
Output files:
If
an ending label record has been described for the file, it is
constructed and written on the output device and the data area
is released.
Input-
Regardless of the position of the file, the data area is released.
output files:
60229400
4-21
Need help?
Do you have a question about the 3300 and is the answer not in the manual?