Have you tried using the report writer using option TXT? Look at file | print file setup
Just have made a very complicated electronic invoice inluding 5 subreports and a lot of spaces and integers, which need to be filled with 000, it works like a charm. Tony From: [email protected] [mailto:[email protected]] On Behalf Of Karen Tellef Sent: zondag 4 januari 2015 21:15 To: RBASE-L Mailing List Subject: [RBASE-L] - Fixed field file I need to create a file with fixed field lengths. Rather than doing SFIL/SPUT I did a "select" statement and it works great and is easy to code, except... I need to have 675 blank spaces at the end of each line and I can't figure out how to do that using a "select" statement. Has anyone done that, or do I need to use SFIL/SPUT. According to my notes, if I use SFIL/SPUT I'll have to use a cursor and then do something like this (and thanks to whoever originally posted this code and I saved it): --Add CarriageReturn/LineFeed charaters to the line Set var vDataLine = (SPUT(.vDataLine,.vCRLF,.vPastEnd)) --Make sure no trash data exists beyond CR/LF Set var vDataLine = (SGET(.vDataLine,..vTotalLength,1)) --Write the line, telling RBASE not to add its own CRLF WRITE .vDataLine CONTINUE Karen

