=========================================================================
Date: Mon, 17 Jul 2006 09:28:55 -0400
Reply-To: Gene Maguin <emaguin@buffalo.edu>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Gene Maguin <emaguin@buffalo.edu>
Subject: Re: Identifying cases that almost match
In-Reply-To: <AEA6D84B49CB764DA4CE5DC54FD7E07F01340B76@qwizmail.previsor.com>
Content-Type: text/plain; charset="us-ascii"
Tom,
To the syntax you posted, add
compute duplicatename=0. /* add this line.
SORT CASES BY LNAME$ (A) FNAME$ (A).
String ShortWholeName (a30).
Compute ShortWholeName = Concat (RTRIM(Lname), ", ", SUBSTR(Fname,1,3)).
Compute DuplicateName=0.
If ShortWholeName=Lag(ShortWholeName) DuplicateName=1.
SORT CASES BY LNAME$ (A) FNAME$ (A) duplicatename (d). /* add.
If ShortWholeName=Lag(ShortWholeName) and
|