SQL/MX Remote Conversational Interface (RMXCI) Guide for SQL/MX Release 3.1 (H06.23+, J06.12+)

--------------------
62
--- 1 row(s) selected.
SQL>
SAVEHIST command
The savehist command saves the session history in a user specified file. The session history
contains a list of commands that were run in the RMXCI session before the savehist command.
Syntax
SAVEHIST file-name [CLEAR]
file-name
is the name of a file into which RMXCI stores the session history. If you want the history file to
exist outside the local directory where you launch RMXCI (by default, the RMXCI install directory),
specify the full directory path of the history file. The specified directory must exist before you
run the command.
CLEAR
instructs RMXCI to clear the contents of the specified file before adding the session history to
the file.
Considerations
You must enter the command in one line.
If the specified file already exists, RMXCI appends new session history information to the file.
Examples
The following command clears the contents of an existing file named history.txt in the
local directory, and saves the session history in the file:
SQL>savehist history.txt clear
SQL>
The following command saves the session history in a file named hist.txt in the specified
directory on a client workstation:
SQL>savehist ./log_files/hist.txt
SQL>
For more information, see “Displaying run commands” (page 39).
SET CATALOG command
The set catalog command sets the default catalog. RMXCI uses this catalog to run the subsequent
SQL statements.
Syntax
SET CATALOG [catalog name];
SAVEHIST command 83