Date: Wed, 9 Dec 2009 13:40:59 -0800
Reply-To: mlhoward@avalon.net
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mary <mlhoward@AVALON.NET>
Subject: Putting the value of a %do loop every thousandth time?
Content-Type: text/plain; charset="UTF-8"
Hi,
I currently have a loop in a macro:
%do i=1 %to &max;
%end;
Currently I get out this message:
MLOGIC(GET_RESULTS): %DO loop index variable I is now 24563; loop will iterate again.
But now I want to try to run it on about 700,000 loops; is there a way I can do something
like
%put i=&i;
But only once every thousandth time or so so my log won't be huge but I can still check where it is at? i.e. I'd like to say
if mod(i, 1000)=0 then %put i=&i;
But I'm not sure how to do the code with a macro variable.
Also, if I get this working, how do I turn off the message from mlogic?
-Mary