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>
Content-Type: text/plain; charset="iso-8859-1"
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
For example, lets say you have the following variable and values:
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?