Re: Stop log output in the middle of a %DO loop

  • Follow


On Mon, 22 Sep 2003 08:46:43 -0400, Yu Guo <Yu.Guo@VERISPAN.COM> wrote:

>Hello,
>I want to stop SAS from writing any log in a very long loop after the loop
>count reach 10, so that I could check if it runs well, and don't have to
>have very big log file which will also slow down the SAS process.  My code
>is somehow like:
>
>%DO i=1 %TO &_tot;
>
>                %IF &i =10 %THEN %DO;
>                     %PUT  WARNNING: The log output has been intendedly
>stopped now;
>                     options nolog;          * NOT WORK :( ;
>                %END;
>        [other code]
>%END;
>
>I tried *options nolog*, however it doesn't work here. Any suggestions?
>
>Thanks a lot!
>
>Raymond


Hey Raymond,
try it with:

proc printto; log=dummy; run;

but don't forget to reset it at end with

proc printto; run;


You could also write it to a file, which give you the chance to read it if
you want (e.g. to find errors or warnings.
0
Reply ghellrieg (841) 9/22/2003 2:04:11 PM


0 Replies
36 Views

(page loaded in 0.039 seconds)

Similiar Articles:













7/13/2012 7:40:29 PM


Reply: