Close
Close is used to free the [F] classes associated with tables and to free the cursors opened on the tables.
Syntax
Close Local File CLASS_LIST
Close File CLASS_LIST
* `CLASS_LIST` is a list of table classes separated by commas. The corresponding tables must be opened.
Examples
# Close all tables
Close Local File
# Close CUSTOMER [CUS] and ITEM [ITM] tables
Close Local File [CUS], [ITM]Description and comments
- The instruction
Close File, whereLocalis omitted, is used to close the tables opened byFilewithoutLocalclause. These syntaxes are deprecated and should no longer be used. OnlyLocal Filedeclaration andLocal Closeshould be done. - A new instruction called LogicClose can also be used to close the table in an optimized manner. The buffer is cleaned but not freed.
Close Local Filewithout argument closes all the tables opened by aLocal Filecommand.- Default lists of tables are updated by
Close Local File. - The
Close Local Fileinstruction is done within a transaction, and takes effect only when the transaction is ended by Commit or Rollback.
Errors
| Error code | Description |
|---|---|
| 7 | Abbreviation not found. |
See also
File, Local, Trbegin, Commit, Rollback.