Date: Tue, 23 Sep 2008 06:30:07 -0400
Reply-To: Leo Bakker <leobakker@RU.NL>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Leo Bakker <leobakker@RU.NL>
Subject: selecting cases
I have a data file that I want to filter on certain diagnosis, for example
Diag1 = 2700 or Diag1 = 2770 or Diag1 = 3900
Problem is there are 50 diagnosis and underlying diagnosis: Diag1 till
Diag50 each with several hundreds of possibilities.
Therefore if I want to create a filter for all cases that have diagnosis
2770 I can do this: Diag1=2770 OR Diag2=2770 OR Diag3=2770 OR
etc.......till Diag50=2770 and so on for every diagnosis.
Simpler would be to select for exampe: Diag1=2770 to Diag50=2770
I already tried:
COMPUTE filter_$=(Diag1 =2770 TO Diag50=2770)etc.
that didn't work
COMPUTE filter_$=(Diag1 =2770 - Diag50=2770)etc.
didn't work either.
Is there a shorter syntax for this filter?
I can't find this in the spss tutorials.
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
For a list of commands to manage subscriptions, send the command