set var vCRLF = (CHAR(13)+CHAR(10)) set var vLine = (SPUT(.vLine,.vCRLF,301))
Use WRITE .vLine CONTINUE to write that to the file. If the CRLF is a problem on the last line you might try set var EOF = (CHAR(26)) and use that at the end of the last line Dennis McGrath [email protected] [email protected] On Thu, Jun 13, 2013 at 5:01 PM, Steve Hartmann <[email protected]>wrote: > 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 > [email protected] > > >

