Date: Wed, 14 Dec 2005 11:21:56 -0800
Reply-To: King Douglas <firstname.lastname@example.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: King Douglas <email@example.com>
Subject: Re: Reading Numeric Data
Content-Type: text/plain; charset=iso-8859-1
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
American Airlines Customer Research
Vivek Kurup <firstname.lastname@example.org> wrote:
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.
Vivek Kurup | Research Analyst
OpinionSearch Inc. | 613-230-9109 : 3051