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
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);
|