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 (January 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 12 Jan 2003 21:44:43 -0500
Reply-To:     Howard_Schreier@ITA.DOC.GOV
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Howard_Schreier@ITA.DOC.GOV
Subject:      Re: Data manipulation

I think it's so simple because this is just the beginning of the semester or quarter.

On Sat, 11 Jan 2003 02:44:16 -0800, Schwarz, Barry A <barry.a.schwarz@BOEING.COM> wrote:

>Are you adding the yesno variable to each observation? If so, something like > if b<a & a<c then yesno='YES'; > else yesno='NO'; >seems to do what you want. But this is so simple there must be something about the problem that I am missing. > >-----Original Message----- >From: Garland [mailto:quandagarland@YAHOO.COM] >Sent: Thursday, January 09, 2003 5:53 PM >To: SAS-L@LISTSERV.UGA.EDU >Subject: Data manipulation > > >Hello, > >I have the following data. > >data test; >input a b c; >datalines; >120 100 150 >110 100 120 >170 100 160 >; >run; > >How can I check whether the variable a values are between range of b >and c. There is no primary key for this variable that means I have to >solely base on variable a. > >I want to create a new variable yesno, if variable a values are >between b and c then 'YES' else 'NO'. > >I would appreciate any help? > >Regards, >Garland


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