Date: Wed, 27 Feb 2008 10:49:48 -0800
Reply-To: FPAStatman <brentvtimothy@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: FPAStatman <brentvtimothy@GMAIL.COM>
Organization: http://groups.google.com
Subject: If In variable groups
Content-Type: text/plain; charset=ISO-8859-1
I am trying to create a data set, with a base record for each year for
a set of 2 ids.
DATA ref; /* used below to insert a record for every year */
do id1 = &minid1 to &maxid1;
do year=1 to &mxyr;
do id2=&minid2 to &maxid2;
if id2 in(11,12,15,16) then do;count=0;output;end;
else delete;
end;
end;
end;
run;
The problem is, the values for the in() statement are not static, but
variable. Is there a way to reference a data set instead of a static
list?
|