Date: Thu, 19 Feb 2009 10:20:14 -0700
Reply-To: ViAnn Beadle <firstname.lastname@example.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: ViAnn Beadle <email@example.com>
Subject: Re: Conditional logic for a data range
Use Help to search for the RANGE function.
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Jim
Sent: Thursday, February 19, 2009 9:28 AM
Subject: Conditional logic for a data range
I am new with SPSS syntax scripting and I have a simple need but I can't
seem to land on the proper conditional logic. I would like to specify a
data value range in a numeric variable for the selection of cases. For
select if (Var1 is in the range of 10 to 100).
I understand I can specify the range with ((var1 ge 10) and (var1 le 100))
this seems unnecessarily cumbersome and I'm thinking there has to be a
simple one statement method. Is there anything a bit more concise than what
I have above?