Event Management Service (EMS) Analyzer Manual

Command Descriptions
Event Management Service (EMS) Analyzer Manual133700
5-35
LOG
LOG
The LOG command directs a copy of the input commands and the output generated by
EMS Analyzer to a file.
logfile-spec
if present, specifies the file to which the commands and output are written. If the
logfile-spec has the form of a disk file name and the file does not exist, an
EDIT file is created. If the named file is an existing disk file, the information is
appended to the file. If logfile-spec is omitted, all logging stops and the log
file is closed.
!
purges the specified file and creates a new file of the same name. If this option is not
specified, EMS Analyzer appends the log information to the end of the existing file.
Considerations
If logfile-spec is specified when logging is already in progress, the current log
file is closed and logging begins to the new file.
The log file cannot have the same name as the OUT file. See the description of the
OUT command.
Logging does not interfere with the writing of output or the collection of input.
Examples
OBEY
The OBEY command causes commands to be read from a specified file (an OBEY file).
OBEY commands can appear within an OBEY file. OBEY files can be nested to a depth
of ten.
Commands are read from the named file and processed until the end of file, an EXIT
command, or an error is encountered. If the end of file is encountered, command
processing continues from the previous input source. If the maximum number of errors
or warnings set by the ALLOW
command is exceeded, the current OBEY file and all
previously opened OBEY files close. Command input reverts to interactive mode. If
EMS Analyzer was started with a disk file specified as the IN file (that is, if EMS
Analyzer was not run in interactive mode), EMS Analyzer terminates.
LOG [ logfile-spec [ ! ] ]
-> LOG $DATA.AUDIT.OCT14
-> LOG
O[BEY] [ /OUT file-spec/ ] file-spec [, NOECHO ]