This command closes an external data file. The file must have already been opened by the OPEN command.
The "ON ERROR GOTO err_label" clause can be specified to define a label to which control should be transferred in the event of an error.
CLOSE fileid {{,}ON ERROR GOTO err_label}
The name associated with the file when it was opened.
A label defined within the current scope of the Script, to which control branches if an error occurs.
CLOSE datafile ON ERROR GOTO Close_error