Date: Thu, 11 Sep 2003 14:50:49 +0200
Reply-To: kende jan <kendejan@yahoo.fr>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: kende jan <kendejan@yahoo.fr>
Subject: Syntax help
Content-Type: text/plain; charset=iso-8859-1
Dear all,
I have a tring variable v1 (a20). I want to compute a new variable v1new with a condition: if v1 contains the string "azoo" then the new variable v1new=1 else v1new=0.
Example
id v1 v1new
1 eat azoo blabla 1
2 do not eat blabla 0
3 constipation 0
.
.
.
Thanks by advance
Jan
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
|