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
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>
>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.