CLOSE


The CLOSE statement is used to CLOSE a previously opened file when it is no longer needed. Item locks and file locks are released.

 

COMMAND SYNTAX

CLOSE variable{, variable ...}

 

SYNTAX ELEMENTS

The variable list is should contain a list of previously opened file variables that are no longer needed. The variables will be cleared and may be reused as ordinary variables.

 

NOTES

It is good practice to hold open only those file descriptors that you wish to have constant access to. Although there is no limit to the number of files that may be opened within jBC, opening large numbers of files and leaving them open consumes resource unnecessarily.

 

EXAMPLES

OPEN "DATAFILE" TO FILEVAR ELSE ABORT 201, "DATAFILE"
.....
CLOSE FILEVAR


jBC