LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?


Back to: Top of message | Previous page | Main SAS-L page