In our shop, the management wanted to convert all the ICETOOL logic to a Normal SORT (PGM=SORT) logic or any equivalent generic SORT. The requirement is as follows,
We have 2 files, Current file is called File-A and Previous file is File-B. Now we wanted to compare File A&B and prepare 3 different files (New records, Deleted Records and Changed records). The Record length is 900 and both the file layout are same.
1. Compare File A & File B â€“ If any new records are added in File-A then write into File-3
2. Compare File A & File B â€“ If any records are deleted in File-A then write into File-4
3. Compare File A & File B â€“ If any new records are Modified or Changed in File-A & B then write into File-5.
I have written a SORTXSUM logic, it track all the add & modified records but couldnâ€™t get the desired solution. If the SORT can replace with multiple steps are fine. But need equivalent replacement. Appreciate your advise.