If we are reading two work files which are not in sorted order, we need to write the matching records into third file. What is the efficient way to do that?
I only have one approach -
Read work file 1
Read work file 2
If work file 1 policy = work file 2 policy
write work file 3
This approach seems to have performance issue. Please let me know if there is any efficient approach.