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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 7419 views
  • 0 likes
  • 4 in conversation