Date: Sun, 12 Jan 2003 21:44:43 -0500
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Subject: Re: Data manipulation
I think it's so simple because this is just the beginning of the semester
On Sat, 11 Jan 2003 02:44:16 -0800, Schwarz, Barry A
>Are you adding the yesno variable to each observation? If so, something
> 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.
>From: Garland [mailto:quandagarland@YAHOO.COM]
>Sent: Thursday, January 09, 2003 5:53 PM
>Subject: Data manipulation
>I have the following data.
>input a b c;
>120 100 150
>110 100 120
>170 100 160
>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?