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 (February 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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?


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