Previous Page | Next Page

System Options under OpenVMS

LOG= System Option: OpenVMS



Specifies a destination for a copy of the SAS log when running in batch mode.
Default: SYS$OUTPUT for interactive line mode, noninteractive, batch, and SAS windowing environment mode
Valid in: configuration file, SAS invocation, VMS_SAS_OPTIONS DCL symbol
Category: Environment control: Files
PROC OPTIONS GROUP= ENVFILES
OpenVMS specifics: valid values for destination; syntax

Syntax
Details
See Also

Syntax

LOG=destination
NOLOG

LOG=destination

specifies either an external file or a device where the SAS log is written. The value of destination can be SYS$PRINT (the default printer queue); your current monitor; SYS$OUTPUT (the default output stream); or an OpenVMS pathname.

NOLOG

specifies that the SAS log is not written to a file. The NOLOG option is valid only in noninteractive mode and batch mode.


Details

The LOG= system option specifies a destination to which the SAS log is written when executing SAS programs in modes other than the windowing environment.

To send the log to a printer other than the default printer, redefine the SYS$PRINT logical name to the queue that you want to use.

The LOG= system option is valid in interactive line mode, noninteractive mode, and batch mode. The LOG= system option is ignored in the SAS windowing environment. The NOLOG= system option is valid in noninteractive mode and batch mode. The NOLOG= system option is ignored in interactive line mode and the SAS windowing environment.

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 list of directives, see LOGPARM= System Option in SAS Language Reference: Dictionary.

Some of the directives require lowercase values. By default, OpenVMS will uppercase any text that is not enclosed in quotation marks. To specify a lowercase directive, you must enclose the name of the log file in quotation marks.

For example, if you want to include the current month in the name of the log file (specified by the %m directive), then you must enclose the value of LOG= system option in quotation marks:

sas92/sysin=oranges/log="mylog%m"/logparm="rollover=auto"

If you do not use the quotation marks, then OpenVMS will change %m to %M, and the name of the log file will contain the value of the minute that the log was created, rather than the month.

Note:   Under OpenVMS, you cannot specify directives using the # symbol.  [cautionend]

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.  [cautionend]

Note:   If you start SAS in batch mode or if you start SAS as a server, 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 recognized 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.  [cautionend]


See Also

Previous Page | Next Page | Top of Page