SAS Proc Printto Cleans Log

I use Proc Printto to save the log and output to a directory that it does pretty nicely, however the log is no longer printed in the log window. I still prefer to use the log for debugging.

proc printto print='<directory>\output.lst' log = '<directory>\log.log' new; run; 

(A new option replaces any existing log-work with the same as in other procedures)

Thank you very much.

+4
source share
3 answers

You can use the -ALTLOG option when starting SAS (for example, in a shortcut) to translate the entire session log into the specified file.

Example target: "C: \ Program Files \ SAS \ โ€‹โ€‹SAS 9.1 \ sas.exe" -AUTOEXEC "c: \ autoexec.sas" -CONFIG "z: \ sas \ temp \ sasv9.cfg" -ALTLOG "c : \ altlog.txt "

There may be an option for output.

+2
source

-ALTPRINT will do this to list. However, if you are in interactive SAS, ODS HTML will generate output if you use the HTML output window, so it is usually not needed. On some operating systems, such as UNIX, LINUX, you can browse / search for output as you write it. I usually do this while working on these OSs.

+1
source

This article introduces a macro that answers my question. http://www.lexjansen.com/pharmasug/2002/proceed/coders/cc10.pdf

0
source

Source: https://habr.com/ru/post/1344221/


All Articles