I am having issues creating an variable length records for a file I am exporting out of my program.
My issue is that the Carriage Return and the Line feed are not showing up in the correct spot in the record.
When I would make this file in RM COBOL - It allowed me to use an Line Sequential File layout, and records that had spaces at the end (that are supposed to be there) were NOT truncated.
Now, using the same exact code with Visual COBOL, the records that have spaces at the end of the record, the Carriage Return\\Line feed is being placed at the end of the last character in the record (the way Line sequential files are SUPPOSED to work)
I've changed my file layout to be Record Sequential, but now i'm getting Garbage at the front of every record.
How do I make this file work?? I've tried EVERYTHING!