On Fri, Mar 22, 2013 at 8:31 AM, Steve Hartmann <[email protected]> wrote:
> I am creating a txt file that is fed into another system. The file has > multiple record types and I am creating it using WRITE statements. The > problem is that when I create the Trailer record R:Base is automatically > adding the CRLF to the end. This creates another record in the file and we > have to manually remove the last 2 characters in the file. I need a > technique for creating this last record without a CRLF on the end. Here's a simple technique for creating the last record without a CRLF on the end: -- Example OUTPUT ABC.TXT -- WRITE statements here ... SET EOFCHAR OFF OUTPUT SCREEN SET EOFCHAR ON Notice the SET EOFCHAR OFF, last statement before the OUTPUT SCREEN, and SET EOFCHAR ON after the OUTPUT SCREEN command. That should provide you with a file with desired results. Very Best R:egards, Razzak. www.rbase.com www.facebook.com/rbase --- RBASE-L ================================================ TO POST A MESSAGE TO ALL MEMBERS: Send a plain text email to [email protected] (Don't use any of these words as your Subject: INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH, REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP) ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: INTRO ================================================ TO UNSUBSCRIBE: Send a plain text email to [email protected] In the message SUBJECT, put just one word: UNSUBSCRIBE ================================================ TO SEARCH ARCHIVES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: SEARCH-n (where n is the number of days). In the message body, place any text to search for. ================================================

