=========================================================================
Date: Fri, 7 Jul 2006 14:56:34 -0400
Reply-To: Siraj Ur-rehman <Siraj.Ur-rehman@Ipsos-ASI.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Siraj Ur-rehman <Siraj.Ur-rehman@Ipsos-ASI.com>
Subject: Re: Truncating zip code
Content-Type: text/plain; charset="us-ascii"
Use This one.
STRING ZIP_NEW (A5).
COMPUTE ZIP_NEW = SUBSTR(ZIP,1,5) .
EXECUTE .
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of
Frommelt, Allen
Sent: Friday, July 07, 2006 2:28 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Truncating zip code
I am interested in mapping patient origin from zip code. Our zip codes
are currently 9 character strings, but our mapping software can only
read five character zip codes. Does anyone on the list know of a method
in SPSS that will allow me to create a 5 character zip code variable by
lopping off the last four characters (e.g., 06451333 would become
06451).
Thanks
|