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 (September 2007, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 28 Sep 2007 21:49:11 -0700
Reply-To:     Patrick <patrick.matter@GMX.CH>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Patrick <patrick.matter@GMX.CH>
Organization: http://groups.google.com
Subject:      Re: Conditional PROCessing
Comments: To: sas-l@uga.edu
In-Reply-To:  <87c79a320709282029q32c582f6x382e7ab4c682aad2@mail.gmail.com>
Content-Type: text/plain; charset="us-ascii"

Perhaps something like this? (code not tested) %macro test(mod=); data newdata; set Orgdata; if model=&mod; *model*=1; run; proc means data=newdata; %if &mod=1 %then %do; var URBAN; %end; %else %if &mod=2 %then %do; var URBAN Education; %end; %else %if &mod=3 %then %do; var URBAN Education Age; %end; class year; weight neweight; run; %mend;

%test(model=1);


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