2013-11-22 238 views

回答

3

您始终可以使用proc printto将其发送到文件,关闭Proc Printto,然后将其读取并输出。这实际上让你记录突出显示,这很好。

filename a temp; 
proc printto log=a; 
run; 
proc freq data=sashelp.class; 
run; 
proc printto; 
run; 

data _null_; 
infile a; 
input @; 
put _infile_; 
run; 
1

另一种选择:ALTLOG。这是只有在系统启动时有效(或者附加到快捷方式中的SAS可执行文本,或者放在配置文件中),所以它不是非常灵活;但它允许你的日志去到一个文件和屏幕。所以,如果你的快捷键是

c:\pathtosas\sas.exe -config "myconfigfiledetails" 

您可以附加

c:\pathtosas\sas.exe -config "myconfigfiledetails" -altlog "c:\temp\seemylog.txt" 

(当然替换正确的文本虚拟文字)。