Hi, I have requirement to match two files on key. File 1 has unique records on key and file 2 has duplicates. I have to do some processing when the records are matched. After all the matching is done, when the EOF for either file is reached, I have to do some special processing at the end. To do this I wrote code similar to one given below:
I am facing issue in certain input situation. The code works perfect when in the last rec KEY1 not equal to KEY2. The EOF for one of the files is set and PARA2 is performed. But when last recs for files are such that KEY1 = KEY2, none of the EOF for these files is set. So the PARA2 is not getting performed. Can someone help?