DATA Step, Macro, Functions and more

Directing Print Output to a file

Accepted Solution Solved
Reply
Contributor
Posts: 40
Accepted Solution

Directing Print Output to a file

Hi 

 

I am using the following sysntax to direct the SAS log output to a text file :

 

proc printto log="&ProjPath\LogDebtReview&TheDate..txt";
run;

 

However, the log file keeps growing. How can I change it so that the log file is overwritten every time


Accepted Solutions
Solution
‎02-22-2016 01:39 AM
Contributor
Posts: 40

Re: Directing Print Output to a file

Perfect.  Thanks RW9

View solution in original post


All Replies
Super User
Super User
Posts: 7,942

Re: Directing Print Output to a file

Put new after the file:

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146809.htm

 

I.e. proc printto "....log" new; run;

Solution
‎02-22-2016 01:39 AM
Contributor
Posts: 40

Re: Directing Print Output to a file

Perfect.  Thanks RW9

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 196 views
  • 1 like
  • 2 in conversation