LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2002)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.


Back to: Top of message | Previous page | Main SPSSX-L page