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 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 31 Oct 2008 16:28:16 -0400
Reply-To:     Ya Huang <ya.huang@AMYLIN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ya Huang <ya.huang@AMYLIN.COM>
Subject:      Re: Using where clause to select for range
Comments: To: Rieza H Soelaeman <rsoelaeman@GMAIL.COM>

It should work. Are you sure your variable year is numeric? If it's a character var, you should use:

'1991'<= year <='2001'

On Fri, 31 Oct 2008 16:14:08 -0400, Rieza Soelaeman <rsoelaeman@GMAIL.COM> wrote:

>Hello everyone, >Just wondering how I can use the where clause to select for a range of >years. For example, I want SAS to run the procedure only on observations >from 1991-2001. I tried where 1991<= year <=2001; but that doesn't work >:(. I really don't want to have to do where year in >(1991,1992,1993,1994,1995,etc.); because the just seems tedious. > >Thanks! >RHS


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