Date: Wed, 27 Oct 2004 14:56:21 -0500
Reply-To: "Dunn, Toby" <Toby.Dunn@TEA.STATE.TX.US>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Dunn, Toby" <Toby.Dunn@TEA.STATE.TX.US>
Subject: Re: preventing log file being writte
Content-Type: text/plain; charset="us-ascii"
Cooch17,
Okay you asked fo rit here it is, code that will supress the log part of
only the proc print.
Learned it from our friendly Macro Maven: Ron "The Documentation King"
Fehd.
data one;
do x = 1 to 100;
output;
end;
run;
options nosource nosource2 nonotes;
proc print data = one;
run;
options source source2 notes;
data _null_;
put "step after print";
run;
HTH
Toby Dunn
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
cooch17@NOSPAMVERIZON.NET
Sent: Wednesday, October 27, 2004 1:48 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: preventing log file being writte
I often run very large Monte Carlo macros, which, if left to their own
devices, will write out very large LOG files, which will inevitably fill
my drive and cause my machine to shudder to a halt.
Simple solution is to prevent SAS from writing out the log file. Based
on an earlier consideration of this problem, I had been using
proc printto log='nul:';
run;
In other words, direct everything to some nulll file.
But, having recently upgraded to SAS 9.xx, I find this bit of code no
longer seems to have the desired effect - I can sit an watch page after
page after page being written to the log window.
So, what is the current working solution to preventing the log file from
being written? For some reason, the 'printto' solution isn't working for
me (I find it hard to believe its related to the upgrade from 8 -> 9,
but stranger things have been known to happen).
Thanks!