The LOG system option
specifies a destination for the SAS log when running in batch mode.
The LOG system option is valid in batch mode; it is ignored in interactive
modes.
Using directives in
the value of the LOG system option enables you to control when logs
are open and closed and how they are named, based on real-time events
such as time, month, day of week, and so on. For a valid list of directives,
see
LOGPARM= System Option in SAS System Options: Reference.
If you start SAS in
batch mode or server mode and the LOGCONFIGLOC= option is specified,
logging is performed by the SAS logging facility. The traditional
SAS log option LOGPARM= is ignored. The traditional SAS log option
LOG= is honored only when the %S{App.Log} conversion character is
specified in the logging configuration file. For more information,
see the SAS Logging Facility in
SAS Logging: Configuration and Programming Reference.
Note: When SAS is started with
the OBJECTSERVER and NOTERMINAL system options and no log is specified,
SAS discards all log and alternate log messages.