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 (September 2008)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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

Dear listers,

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.

Thanks, Leo Bakker

===================== 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 SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


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