System Options under UNIX |
Default: | a file in the current directory with the same filename as the SAS source file and an extension of .log |
Valid in: | configuration file, SAS invocation, SASV9_OPTIONS environment variable |
Category: | Environment control: Files |
PROC OPTIONS GROUP= | ENVFILES, LOGCONTROL |
UNIX specifics: | all |
Syntax | |
Details | |
See Also |
Syntax |
-LOG file-specification | -NOLOG |
specifies the destination for the SAS log. The file-specification can be any valid UNIX path to a directory, a filename, or an environment variable that is associated with a path. If you specify only the path to a directory, the log file is created in the specified directory. The default name for this file is filename.log, where filename is the name of your SAS job.
suppresses the creation of the SAS log. Do not use this value unless your SAS program is thoroughly debugged.
Details |
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 the LOGPARM= System Option in SAS Language Reference: Dictionary.
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 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.
See Also |
The SAS Log in SAS Language Reference: Concepts
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.