Steve,

 

In this case I advise to make use of the special report functionality

 

1.   Create a (temp) table with a text column of 300 characters

a.    Think about adding extra columns for sorting and so on

b.    Put all the necessary information into this table.

2.   Create a report 

a.    Put the column of the created tabel in the detail line, remove the
rest like headings and so on.

b.    Choose option File | Print to text file setup

c.    Choose file type fixed length (300)

d.   Move the column in the detailline from available controls to selected
controls

3.   Print the report using the statement:

PRINT <reportname> WHERE <condition> ORDER BY <column(s>  OPTION TXT
|FILENAME <filename>

 

Hope this helps.

 

Tony

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Steve
Hartmann
Sent: vrijdag 14 juni 2013 0:39
To: RBASE-L Mailing List
Subject: [RBASE-L] - Space filling when using the Write statement.

 

I am creating a fixed length export file with a header and trailer.  Every
record has to be exactly 300 characters long.  When I use the write
statement, even with the sfil function it was truncating the spaces on the
end.  To solve that, I added an underscore as the 300th character. We are
supposed to be in production now and during testing we had no problems with
the underscore.  Now they are saying that it is a problem.   Does anyone
have a suggestion in windows on how to create a 300 character long record
with spaces through the last character.

 

Steve

 

Steve
[email protected]

  _____  

 

Reply via email to