BookmarkSubscribeRSS Feed
sasuser1000
Calcite | Level 5
Hi ,

I have a code that when run, the log window gets full and stop the run till I clear the log.

I would like to run the code overnight and clear the log window automatically but still be able to see the log output in the morning.

Do you know what line of code should I add in order to clear log automatically but still saving the ouptut of the log somewhere?
4 REPLIES 4
Ksharp
Super User
Try to use proc printto to redirect the log to a txt file.
[pre]
proc printto log='c:\log.txt';
run;
....your proc....
proc printto ;
run;
[/pre]


Ksharp Message was edited by: Ksharp
Ksharp
Super User
Try to use proc printto to redirect the log to a txt file.
[pre]
proc printto log='c:\log.txt';
run;
....your proc ....
proc printto ;
run;
[/pre]


Ksharp Message was edited by: Ksharp
SASKiwi
PROC Star
You can also bypass this problem by running the program in batch mode: from a command line type SAS -SYSIN "mysasprog.sas"
ballardw
Super User
> You can also bypass this problem by running the
> program in batch mode: from a command line type SAS
> -SYSIN "mysasprog.sas"

Which should also generate a log file you can review at need.

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

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 8231 views
  • 0 likes
  • 4 in conversation