SAVE_LTAB
This command enables you to save the contents of the specified logical table.
The format of the command is as follows:
SAVE_LTAB 'Logical table name'
SCREEN or (( or DEL_OLD or APPEND) 'filename')
An example of the command is given below:
SAVE_LTAB 'logtable1'
DEL_OLD 'file1.tbl'
SAVE_LTAB requires two parameters. The first parameter is the name of the logical table to save. In this example, the logical table is logtable1. The second parameter indicates the output destination to which the specified logical table is saved. In this example, the output destination is the file file1.tbl with the option DEL_OLD, which means if file1.tbl already exists, it is overwritten.
If you specify a file as the output destination, you can alternatively use option APPEND or no option at all. APPEND means the specified logical table is appended to the end of the specified file if it exists. If it does not exist, the specified file is created. If you do not specify any option, the specified file is created provided no other file of the same name exists. If the specified file already exists, an error message is displayed and the command is aborted.
Alternatively, you can specify the screen as the output destination by specifying SCREEN instead of DEL_OLD and file1.tbl in the above example. But, the advantage of saving a table in a file is that you can subsequently use the INPUT command to input this file to redefine the table.