Neoview Script Guide (R2.2)

6 Files(s) 19,491 bytes
2 Dir (s) 57,686,646,784 bytes free
SQL> LH mkdir c:\neo -> Will create a directory c:\neo on your local machine
LOG Command
The LOG command logs the entered commands and their output from the Neoview Script
interface to a log file.
Syntax
LOG { ON [CLEAR] | log-file [CLEAR] | OFF }
ON
starts the logging process and records information in the sqlspool.lst file in the Neoview
Script bin directory.
ON CLEAR
instructs Neoview Script to clear the contents of the sqlspool.lst file before logging new
information to the file.
log-file
is the name of a log file into which Neoview Script records the entered commands and their
output. If you want the log file to exist outside the local directory where you launch Neoview
Script (by default, the Neoview Script bin directory), specify the full directory path of the
log file. The log file does not need to exist, but the specified directory must exist before you
execute the LOG command.
log-file CLEAR
instructs Neoview Script to clear the contents of the specified log-file before logging new
information to the file.
OFF
stops the logging process.
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
96 Neoview Script Interface Commands