I can do sort on field-1 on asc order then i need to read this file .Since the file is VB ,the record in first line is till 654 and from 655 it should start the second line record.The second line record length is 700,,, not all 1132 utilized in the input file .so i need to calculate the length also for each line and need to append the records which has same values....
If I'm reading the file
READ READ INPUT-FILE
SET EOF-INPUT-Y TO TRUE
How i can hold the previous field1 value and then read the second record and check 2nd value with 1st value and then write to output file ?
while writing to output it should be written in 2 lines (one with 1111111111111111 and another with 2222222222222) : i need to increase the length of output file also