I have to compare current version and previous version of a PS GDG file with LRECL=80. The keys were unique.
For example : current file is F1 and previous file is F2
If Record key (1,5) matches between F1 and F2, then its fields needs to be compared and if there is any difference, then it needs to be written to output file with last data appended as "M" which denotes modified.
If record key is present in current file but not in previous file ,then current file record must be written to output file with last data appended as "C" which denotes Create.
If record key is present in previous file but not in current file ,then current file record must be written to output file with last data appended as "D" which denotes Delete.
I didn't mean that. I have written many cobol program for this scenarios. But I want to try icetool to make it in short steps. I am trying using joinkeys. But join keys only compares the keys and not other fields of matched records for comparison. So seeking help on this.
I didn't mean that. I have written many cobol program for this scenarios. But I want to try icetool to make it in short steps. I am trying using joinkeys. But join keys only compares the keys and not other fields of matched records for comparison. So seeking help on this.
Try this untested. If both the files are not in sorted order by key then remove SORTED,NOSEQCK
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
From a test run, the indicators (C and D) might need to be swapped for the OPs original requirement. I am sure he would have figured it by now. Also the OUTFIL INCLUDE could be simplified as an OMIT COND like this: