Date: Thu, 18 Apr 1996 09:48:24 +1000
Reply-To: miuron@LURE.LATROBE.EDU.AU
Sender: "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From: miuron@LURE.LATROBE.EDU.AU
Organization: VAX Cluster, Computer Centre, La Trobe University
Subject: Help with WRITE OUTFILE problem
For specific select criteria I wish to split an ascii data file into two
smaller
ascii files of the same format (but with reduced numbers of records in each).
The problem is that spss does not write spaces at the end of a line. I need
the spaces; does anyone know how to force spaces in the output?
I'll exemplify the problem. Note that I have added "<eoln>" to indicate the
end of the line.
The original file shows the following:
BESSBSWBEE4111 <eoln>
BESSBSWBEE41 2 <eoln>
BESSBSWBEE4110 <eoln>
B BVBSW E4110 <eoln>
WOBVBSWW E41 <eoln>
The new files created by spss when I use write outfile etc.:
BESSBSWBEE4111<eoln>
BESSBSWBEE41 2<eoln>
B BVBSW E4110<eoln>
BESSBSWBEE4110<eoln>
B BVBSW E4110<eoln>
Note the loss of spaces beyond the last "non-space" character!
====================================
What I need it this:
BESSBSWBEE4111 <eoln>
BESSBSWBEE41 2 <eoln>
B BVBSW E4110 <eoln>
BESSBSWBEE4110 <eoln>
B BVBSW E4110 <eoln>
What do you think?
Ron Crichton, La Trobe Uni.