Open statement in SQR
SQR - After writing many records and reaching the last detail record, SQR inserts an extra line after the last detail record. I've researched and used the below 'OPEN' statement but it only writes the first detail record and ignores the rest BUT, does not write the extra line at the end of file.
open $filename as #file_out for-writing record=219:fixed_nolf status=#file_status