rahul_jot
New User
Joined: 17 Aug 2005 Posts: 22 Location: Pune
|
|
|
|
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:
******************************************
JOB INPUT (FILE1 KEY (KEY1) +
FILE2 KEY (KEY2))
******************************************
IF MATCHED
PERFORM PARA1
END-IF
IF EOF FILE1 OR EOF FILE2
PERFORM PARA2
END-IF.
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?
Thanks,
Rahul |
|