QUIT command
Ends the current session and closes Analytics.
Syntax
QUIT
Examples
Check if a file exists and close Analytics if it does not
You have created a script for others to run, but if a required file does not exist, you want to close Analytics.
The example below checks if the required Inventory.csv file exists, and closes Analytics if it does not:
IF FILESIZE("Inventory.csv") = -1 QUIT
Automatically close Analytics after a script completes
The script below summarizes the Inventory table, and produces output results, then automatically closes Analytics:
OPEN Inventory SUMMARIZE ON Location ProdCls SUBTOTAL Value TO "Inventory_value_by_location_class.FIL" PRESORT CPERCENT QUIT
Remarks
Changes are saved
When QUIT executes, any Analytics tables that are open are saved and closed before quitting.
If you modified the active view or a script and did not save the changes, Analytics prompts you to save the changes before quitting.