Help using Base SAS procedures

"Log window full"

Reply
Contributor
Posts: 60

"Log window full"

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?
Super User
Posts: 10,023

Re: "Log window full"

Posted in reply to sasuser1000
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
Super User
Posts: 10,023

Re: "Log window full"

Posted in reply to sasuser1000
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
Super User
Posts: 3,252

Re: "Log window full"

You can also bypass this problem by running the program in batch mode: from a command line type SAS -SYSIN "mysasprog.sas"
Super User
Posts: 11,343

Re: "Log window full"

> 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.
Ask a Question
Discussion stats
  • 4 replies
  • 2816 views
  • 0 likes
  • 4 in conversation