Hello,
What are the options for saving SAS logs to a folder? I am aware of proc printo option, however is there a option on SASEG tool that could be set up to re-direct the logs to a folder automatically. We are on SASEG version 8.1
Thanks
Do such changes in the logconfig.xml of the workspace server.
How are you running these programs? If you are running these interactively, then proc printto is your only option.
If you switched to running your programs in batch mode then logs would be produced automatically.
@SASKiwi -- Could you clarify what you mean by
"If you switched to running your programs in batch mode then logs would be produced automatically. " ??
Basically I am looking for automatically saving the logs in a user's personal folder.
Also how would running a program interactively or batch mode make a difference. The logs are going to be generated either ways right?
Thanks
@RupaJ - I should have been more precise. In batch mode log files are produced automatically and you can control the folder and file name by using the -LOG option when invoking SAS. In interactive mode logs are also produced automatically but they are not sent to files automatically.
This link explains the different processing modes: https://documentation.sas.com/?docsetId=basess&docsetTarget=p1kxww6uew143an1rbqyopwl0bgx.htm&docsetV...
Thanks or clarifying @SASKiwi
@Kurt_Bremser - Thanks for giving me an alternative. I am assuming all logs will go to a certain folder. I am looking for each users's logs going to their respective folder.
Enterprise Guide uses a workspace server to run SAS code. The workspace server is configured by default to send all log text back to the client. Only the startup and shutdown messages are recorded in log files in Lev1/SASApp/WorkspaceServer/Logs.
You can configure the workspace server to record all logs from client action in the server-side log files, and define an alternate location for these log files. You do this by changing the logconfig.xml in the WorkspaceServer directory.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: