BookmarkSubscribeRSS Feed
SaranyaSundar
Calcite | Level 5

Hello all,

 

Is there any option to automatically save the log file in the respective folder instead of giving the folder path each and every time..

 

Thanks in advance

2 REPLIES 2
SASKiwi
PROC Star

This post describes two different ways: https://communities.sas.com/t5/SAS-Procedures/Saving-log-files/m-p/132187#M35929

 

You could also run your program as a batch job which creates a log file automatically.

Kurt_Bremser
Super User

For workspace server logs (SAS Studio or Enterprise Guide), you can modify the logconfig.xml in the configuration directory.

Create a copy, modify that, and use that copy in the sasv9_usermods.cfg

 

I have created a setup where the log of each user session is preserved in a subdirectory of the respective user's $HOME.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 973 views
  • 1 like
  • 3 in conversation