SAS:打印到日志并同时查看实时日志窗口 [英] SAS: Print to Log AND View Live Log Window Simultaneously
问题描述
我知道PROC PRINTTO LOG="C:TEMP\SAS LOG.TXT"
输出SAS程序日志的全部内容,但是从本质上讲,这在程序运行时也将日志窗口留为空白,因此我无法查看SAS程序的实时"进度.说话.
I understand that PROC PRINTTO LOG="C:TEMP\SAS LOG.TXT"
outputs the entire contents of a SAS program log, but this also essentially leaves the log window blank while the program is running and I am unable to view the 'live' progress of the SAS program so to speak.
我最终希望保存日志以供进一步检查,但是我也想在运行测试等过程中实时监视发生的事情.有没有办法打印日志并保持日志的内容同时发生?
I want to ultimately save the log for further review, but I also want to keep an eye on things as they're happening live when I'm running tests, etc. -- is there a way to print the log and keep the contents of the log live as they're happening simultaneously?
推荐答案
如果使用的是Enterprise Guide或任何EBI客户端,则可以启用在应用程序服务器上的登录.这将为您提供日志副本和常规日志.不过不适用于Base SAS.
If you are using Enterprise Guide or any of the EBI clients you could enable logging on the application server. This will give you a copy of the log along with your regular log. Won't work for Base SAS though..
步骤:
- 导航至:[sasconfig] \ Lev1 \ SASApp \ WorkspaceServer
- 将logconfig.xml重命名为logconfig.xml.orig
- 将Logconfix.trace.xml重命名为logconfig.xml
- 重新启动对象生成器
编辑:如果您乐于接受顺序记录(而不是同时记录),则建议对此问题(基本上读回外部日志文件并打印到会话日志)
if you were happy to accept sequential - as opposed to simultaneous - logging, I'd recommend the approach outlined in the answer to this question (basically read the external log file back in and print to session log)
这篇关于SAS:打印到日志并同时查看实时日志窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!