Date: Wed, 18 Dec 2002 10:48:54 -0600
Reply-To: "Wall, Deborah A." <walld@umkc.edu>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Wall, Deborah A." <walld@umkc.edu>
Subject: Re: converting text to numeric
Content-Type: text/plain; charset="us-ascii"
If you are reading in the data via a DATA LIST command and the values
are in set columns, my suggestion is to not read the alpha part of data.
Here is an example:
Data List / numpart 2-6.
Begin Data
A29001
A29002
B30023
End Data.
List.
Deborah Wall
University of Missouri - Kansas City
Information Services
Kansas City, MO 64110-2499
---Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Erin Pilibosian
Sent: December 17, 2002 5:01 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: converting text to numeric
I have a string variable and in the field, the values look like this:
A29001
A29002 and so forth
I would like a numeric variable where the value is just the number:
29001
29002 and so forth
Has anyone done anything like this?
Please reply directly to me, as I am not on the list serv.
Thanks.