| Date: | Thu, 21 Nov 2002 11:45:13 -0600 |
| Reply-To: | Stefan Gildemeister <Stefan.Gildemeister@STATE.MN.US> |
| Sender: | "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU> |
|
| From: | Stefan Gildemeister <Stefan.Gildemeister@STATE.MN.US> |
| Subject: | converting string to number and back |
| Content-Type: | text/plain; charset=US-ASCII |
This falls into the 'basic' category but a sufficient answer has eluded
me for a while. I have numbers stored as string and I'd like to convert
them into a numeric format without having to recode each string value to
its appropriete numeric value.
One way is to just turn the "type" switch in the variable view. This
works but is crude and it seemingly cannot be done in syntax. Issuing
the "number" command gives me an error message:
>Warning # 3240. Command name: NUMBER
>NUMBERED This command is no longer supported.
Any thought would be greatly appreciated, especially, if it also
contained a way to turn a numeric format into a string. Thanks,
Stefan.
Stefan Gildemeister
Research Scientist/Economist.
MN Department of Health - Health Economics
121 East Seventh Place, Suite 400
St. Paul, MN 55101
phone: 651.282.6346
fax: 651-282-5628
e-mail: Stefan.Gildemeister@health.state.mn.us
web: www.health.state.mn.us
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|