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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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