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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1026 views
  • 1 like
  • 3 in conversation