Considerations
• In the Neoview Script interface, you must enter the command on one line. The command
does not require an SQL terminator.
• Use a unique name for each log file to avoid writing information from different Neoview
Script sessions into the same log file.
Examples
• This command starts the logging process and records information to the sqlspool.lst
file in the Neoview Script bin directory:
SQL>log on
• This command starts the logging process and appends new information to an existing log
file, persnl_updates.log, in the local directory (the same directory where you are running
Neoview Script):
SQL>log persnl_updates.log
• This command starts the logging process and appends new information to a log file,
sales_updates.log, in the specified directory on a Windows workstation:
SQL>log c:\log_files\sales_updates.log
• This command starts the logging process and appends new information to a log file,
sales_updates.log, in the specified directory on a Linux or UNIX workstation:
SQL>log ./log_files/sales_updates.log
• This command starts the logging process and clears existing information from the log file
before logging new information to the file:
SQL>log persnl_ddl.log clear
• This command stops the logging process:
SQL>log off
For more information, see “Logging Output” (page 63).
MODE Command
The MODE command determines the operating mode of the current session to be either SQL for
database commands or CS for connectivity service commands. The default mode for Neoview
Script sessions is SQL.
Syntax
MODE { SQL | CS }
SQL specifies SQL mode and supports the use of all SQL statements and Neoview Script
interface commands. The connectivity service commands are disallowed in SQL mode.
CS specifies connectivity service (CS) mode and supports the use of connectivity service
commands. For more information, see Appendix C (page 135).
CS mode also supports these Neoview Script interface commands:
• @ and OBEY
• CLEAR
• CONNECT, RECONNECT, DISCONNECT, EXIT, and QUIT
• ENV, SESSION, and SHOW SESSION
• FC and REPEAT
• HELP
• HISTORY and SAVEHIST
• LOG and SPOOL
92 Neoview Script Interface Commands