Neoview Command Interface (NCI) Guide (R2.5)
Considerations
• You must enter the command on one line. The command does not require an SQL terminator.
• You can execute this command only in SQL mode.
Example
This command executes the previously executed SELECT statement:
SQL>select count(*) from persnl.employee;
(EXPR)
--------------------
62
--- 1 row(s) selected.
SQL>run
(EXPR)
--------------------
62
--- 1 row(s) selected.
SQL>
SAVEHIST Command
The SAVEHIST command saves the session history in a user-specified file. The session history
consists of a list of the commands that were executed in the NCI session before the SAVEHIST
command.
Syntax
SAVEHIST file-name [CLEAR]
file-name
is the name of a file into which NCI stores the session history. If you want the history file to
exist outside the local directory where you launch NCI (by default, the Neoview Command
Interface bin directory), specify the full directory path of the history file. The specified
directory must exist before you execute the SAVEHIST command.
CLEAR
instructs NCI to clear the contents of the specified file before adding the session history to
the file.
Considerations
• You must enter the command on one line. The command does not require an SQL terminator.
• If the specified file already exists, NCI appends newer session-history information to the
file.
106 NCI Commands