CLOSE command
Closes an Analytics table, index file, or log file, or ends a Script Recorder session.
Syntax
CLOSE <table_name|PRIMARY|SECONDARY|INDEX|LOG|LEARN>
Parameters
Name | Description |
---|---|
table_name|PRIMARY|SECONDARY|INDEX|LOG|LEARN optional |
The item to close:
|
Examples
Closing a table by name
You want to close a table called Inventory:
CLOSE Inventory
Closing a table by type
You want to close the current secondary table:
CLOSE SECONDARY
Restoring the default Analytics command log
You want to restore the default command log after using a separate log file to capture the data verification phase of a script:
SET LOG TO "DataVerificationPhase.log"
COMMENT Execute data verification commands
CLOSE LOG
Remarks
When to use CLOSE
You typically do not need to close Analytics tables. The active Analytics table automatically closes when you open another table. The primary table also closes automatically before the OPEN or QUIT commands execute.
You cannot use CLOSE to close an Analytics project. Use QUIT instead.
Related fields and tables
When you close a primary or secondary table, all related field definitions are removed from memory. Any changes to the table layout are saved before the table is closed.
If you have defined table relations in an Analytics project, the CLOSE command closes both the primary and any secondary tables. It also closes the related tables.