Posted: Fri Sep 26, 2003 9:13 am Post subject: Cobol Internal Sort on Multiple Record Layouts
Hello,
I need to sort an input file on 2 fields. The input file is fixed length 25000 byte.
The problem I have is some of the records span multiple lines, say multiple records.
I need to keep those groups together when doing the sort. Here's a sample input file,
Sort parameters are: 3 positions from 5th byte
and 4 positions from 8th byte
A new record is identified by '0001' at the start of the record. If it is not '0001', that means, the record is a continuation of the previous line and this record needs to be grouped together.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum