Date: Wed, 9 Dec 2009 13:40:59 -0800
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"
I currently have a loop in a macro:
%do i=1 %to &max;
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
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?