I had used JCL about 2 years back so cannot write a code for you but here is the idea;
- Have 2 steps
- First step will have ICETOOl where you can write the matching records to matched file.
- Second you can write a file for mismatched by using SORT/ICETOOl or by just file operations.
again i apologize for solution without code, but i am out of touch by 2 yrs+