File-A and File-B have 10 records and I want to move matching records from both the files in file-C and non-matching records in file-D?
Without sorting the both input files.
ALL FILES ARE PS.
Question asked by visitor Alok
File-A and File-B have 10 records and I want to move matching records from both the files in file-C and non-matching records in file-D?
Without sorting the both input files.
ALL FILES ARE PS.
Question asked by visitor Alok
I am replying with simple pseudo code bellow, plz work on it.
Read records of File-A one by one and chk it with all records of File-B.
If it matches then write to File-C else write to File-D.
The only way you can do this by writing the cobol program. Where the frist record in file A should be compared with rest of the record in File B. if matching found then write the record to C after writing delete the record form the both Files A and B.
After this step is over . you are left with only unmatching records in both the files . So write them to file D.