F-KLOSE

Closes a specified file buffer.

Syntax

F-KLOSE file-buffer-number

F-K file-buffer-number

Syntax Elements

file-buffer-number
is the number of the file buffer to be closed. Valid numbers are 1 to 47, but note that 19 and 20 are reserved for system Procs.

file-buffer-number can be a direct or indirect file buffer reference.

Operation

The F-KLOSE command closes the File Control Block (FCB) associated with the file buffer and releases the overflow space associated with it.

Note that the overflow space is associated with file buffers because this is the mechanism used to store data which has been moved or read into them.

The F-KLOSE command is not required in normal operations. Users who open remote files might wish to close them via F-KLOSE when further references are not required.

Example

F-KLOSE 1

Closes file buffer 1.