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 (October 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 28 Oct 2008 13:20:11 -0400
Reply-To:   Katie Schmidt <kathryn.schmidt@IBX.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Katie Schmidt <kathryn.schmidt@IBX.COM>
Subject:   Referencing a range of values in one variable

I have a variable with year/month date values (i.e.. starting at 200601...going to 200809). This is the variable by which I'd like to subset my dataset - I'd like to include only those who are in there for every month from 200601-200809.

How do I select people based on this criteria (it can either be in Base SAS or proc sql)? I've tried the code below but neither seem to work.

Where date in: ('2006') and date in: ('2007') and date in: ('2008')

where left(date,4) = '2006' and left(date,4)='2007' and left(date,4) ='2008'


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