Option AltLog

From sasCommunity
Jump to: navigation, search

The command-line option AltLog saves a copy of the sas.log.

It works like the option log.

This statement produces an explanation of the option.

proc options define value option = altlog;

The argument can be either:

Usage with directory specification: creates ..\altlog\MyProgram.log:

sas MyProgram -altlog ..\altlog

Usage with file specification: creates MyProgram1.log and MyProgram2.log

call sas MyProgram -altlog MyProgram1.log
call sas MyProgram -altlog MyProgram2.log

For code to dynamically change the altlog filename see Using sysfunc with file functions to overwrite altlog

Personal tools
Namespaces
Variants
Actions
Navigate
Sasopedia Detail
Contribute
Connect
Toolbox