Date: Thu, 3 Jan 2002 13:07:04 -0600
Reply-To: Zachary Feinstein <zfeinstein@mpls.totalres.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Zachary Feinstein <zfeinstein@mpls.totalres.com>
Subject: Re: Writing Out Numbers with Decimals
Content-Type: text/plain; charset=US-ASCII
Thanks Raynald. I appreciate it.
Zachary
>>> Raynald Levesque <rlevesque@videotron.ca> 01/02/02 08:44PM >>>
Hi Zachari and list members,
This does it:
GET FILE='C:\program files\spss\employee data.sav'.
* Next line writes (flush right) the variable salary with 10 decimal places.
WRITE OUTFILE = "c:\temp\datt8379.txt" TABLE /
salary 1-20 (F,10)
educ 50-51
jobtime 21-22.
EXECUTE.
The format are described in the DATA LIST page.
Regards
Raynald Levesque rlevesque@videotron.ca
Visit My SPSS Pages: http://pages.infinit.net/rlevesqu/index.htm
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Zachary Feinstein
Sent: Wednesday, January 02, 2002 7:54 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Writing Out Numbers with Decimals
I'm trying to figure a better way to write out my data to a text file.
Currently, I'm using the following:
WRITE OUTFILE = "D:\scotch\datt8379.txt"
TABLE /
wtfin (T1, F20.15)
q164 age 50-51
q107 21-22
mq2001 TO mq2006 mq2007 TO mq2009 mq20010 101-110
mq2051 TO mq20529 mq2101 TO mq21019 mq21020 TO mq21023 mq21024 TO mq21030
201-259
q103 q215 q230 q235 401-404
q310_1 TO q310_67 501-567
q320_1 TO q320_67 601-667.
EXECUTE.
The only way that I currently know how to write out a decimal number is with
the line above:
wtfin (T1, F20.15)
I think that means to tab over one position, then write out a 20 character
number, of which 15 are past the decimal point.
Can you provide some information, or where in the syntax manual I might find
information on how to write out a decimal number so that it:
- is flush right &
- I can be more explicit about the columns that it is in instead of using
T1 (tab-over).
I would much rather just say what columns I would like the number to go
into.
Thanks in advance
Zachary
zfeinstein@mpls.totalres.com
(952) 541-7161