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 (February 2002)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 8 Feb 2002 11:34:20 -0600
Reply-To:     "Sidky, Sonya" <Sonya.Sidky@etf.state.wi.us>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         "Sidky, Sonya" <Sonya.Sidky@etf.state.wi.us>
Subject:      syntax
Content-Type: text/plain; charset="iso-8859-1"

Hello SPSSers,

I am trying to write syntax that recodes a variable based on whether a certain string can be found in another variable. Is there a function available that flags cases in which a string expression contains certain characters?

For example, lets say you have the following variable and values:

CODE 1234 2223 2V25 2X25 2V12

How would you write syntax that would recode any case that contains the letter 'V' as number 1 and 'X' as 2 into a new variable?

Thanks,

Sonya


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