Safeguard Reference Manual (G06.24+, H06.03+ )

SAFECOM Session-Control Commands
Safeguard Reference Manual520618-013
4-19
LOG Command
Examples
1. The following command displays the last four commands entered during the
current session. The example assumes that the HISTORY command is the ninth
command entered during the session.
=HISTORY 4
6=ASSUME DISKFILE
7=SHOW
8=ADD RPT05, ACCESS 14,* R
9=HISTORY 4
=
2. The following sequence of commands shows the function of the HISTORY RESET
LAST command. To help you understand the example, the DISPLAY PROMPT
command is used to display the command line number in the SAFECOM prompt.
In this example, the HISTORY RESET LAST command deletes the INFO
DISKFILE command from the history buffer and resets the current command line
number to that of the deleted command. The HISTORY RESET LAST command
itself is not retained in the history buffer.
=DISPLAY PROMPT COMMAND NUMBER
5=INFO DISKFILE $DATA.HAROLD.SEC07
6=HISTORY RESET LAST
5=HISTORY 2
4=DISPLAY PROMPT COMMAND NUMBER
5=HISTORY 2
6=
LOG Command
LOG enables and disables the SAFECOM logging feature. When logging is enabled,
SAFECOM writes a complete record of your session to a log file. All the command
lines you enter and all the text lines SAFECOM produces in response to those
commands are saved in the log file.
Entering a LOG command with a log-file name turns the logging feature on. To turn off
logging, enter a LOG command without a log-file name.
LOG
entered without logfile, turns the logging feature off. The current logfile, if
any, is closed, and no log output is produced.
LOG [ logfile ]