Date: Tue, 18 Jun 2002 11:04:39 -0400
Reply-To: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject: Re: Building lists from macro vars
Mike, have a look at the example:
51 %macro a;
52 %let by=age;
53 %let by1=sex;
54 %let by2=height;
55 %do i=1 %to 2;
56 %let by=&by &&by&i;
57 %end;
58 proc sort data=sasuser.class;
59 by &by;
60 run;
61 %mend;
62 options mprint;
63 %a;
MPRINT(A): proc sort data=sasuser.class;
MPRINT(A): by age sex height;
MPRINT(A): run;
Is that what you want?
|