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 2005)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 14 Dec 2005 11:21:56 -0800
Reply-To:     King Douglas <king_d@swbell.net>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         King Douglas <king_d@swbell.net>
Subject:      Re: Reading Numeric Data
Comments: To: Vivek Kurup <vkurup@opinionsearch.com>
In-Reply-To:  <A199185464CED211BC9800805FC7D18F0C39A4A5@xchng1.net.prv>
Content-Type: text/plain; charset=iso-8859-1

Vivek,

Read your numeric data in a usual. Set the format to the desired number of places as follows:

FORMATS MyNumVar (N2.0).

In the case above, a value of 9 would appear as 09.

FORMATS MyNumVar (N4.0)

In the case above, a value of 17 would appear as 0017

King Douglas American Airlines Customer Research

Vivek Kurup <vkurup@opinionsearch.com> wrote: Hello All,

I want to read numeric data from an ASCII file, without dropping the leading zeros. For ex, 09 shud be read in as 09 and not 9.

One way to do this is to make the variables alpha-numeric in the Data List. However, since I have more than 500 vars, I wanted to know if there's an alternative method.

Thanks, Vivek Kurup | Research Analyst OpinionSearch Inc. | 613-230-9109 : 3051


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