53
CLOSE
#
(close)
Closes the file.
Format:
CLOSE [# <logical number>]
Abbreviated form:
CLO.#
Explanation:
• Closes the data file opened by the logical number; returns this number to the
non-define
a
condition.
• CLOSE relative to XOPEN #
Closes the BRD file opened for read-outlwrite-in and returns all logical numbers
used to the non-defined condition.
• CLOSE relative to WOPEN #
Registers formally the BSD file opened for write-in; and returns the logical number
used to the non-defined condition.
• CLOSE relative to ROPEN #
Closes the BSD file opened for data read-out; and returns the logical number used
to the non-defined condition.
• When logical number not specified, closes all currently open files, and returns all
logical numbers to non-defined condition.
• When do not specify logical number, closes all currently open files; logical numbers
are returned to non-defined condition.
Examples:
10
CLOSE#1
..... Closes logical number #1 file.
20
CLOSE
..... Closes all files.
References:
XOPEN # (page 50)
WOPEN # (page 48)
ROPEN # (page 46)