Date: Wed, 14 Jun 2000 15:25:44 -0700
Reply-To: Annie Chang <chang5a@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Annie Chang <chang5a@YAHOO.COM>
Subject: macro variables
Content-Type: text/plain; charset=us-ascii
Hi,
I have a question about use of variables. I created
200 macro variables, say, called 'var1, var2, ...,
var200'. Now I need to do a calculatin on it. For
example,
data _null_;
sum = &var1 + &var2 + ... + &var200;
run;
Obviously, I couldn't use the '...'. Well, I know I
can type those 200 variables but I bet there got to be
a better way and you know it!
Thank you.
P.S. BTW, a couple of weeks ago, I asked another
question and got quite a few answers. Most of them
work fine and solved my problem. Thank you all! This
is a great place and I couldn't resist to think about
this list when I got a problem (I'll try very hard
first to avoid asking you too trivial ones.)
__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com
|