I have a requirement to print the following details in the existing job.
File1 records read count
File2 records read count
Matched records read count
Unmatched record count only in file1
Unmatched record count only in file2
Number of records written in o/p file.
//File1 DD DSN=XXX
//File2 DD DSN=YYY
//SORTOUT DD DSN=ZZZ
JOINKEYS F1=File1,FIELDS=(1,9,A),SORTED,NOSEQCK
JOINKEYS F2=File2,FIELDS=(1,9,A),SORTED,NOSEQCK
JOIN UNPAIRED,F1
REFORMAT FIELDS=(F1:1,84,F2:14,2,F2:20,2,?)
OUTREC IFTHEN=(WHEN=(89,1,CH,EQ,C'1'),
OVERLAY=(85:X'000C',87:X'000C'))
//File2 DD DSN=YYY
//SORTOUT DD DSN=ZZZ
JOINKEYS F1=File1,FIELDS=(1,9,A),SORTED,NOSEQCK
JOINKEYS F2=File2,FIELDS=(1,9,A),SORTED,NOSEQCK
JOIN UNPAIRED,F1
REFORMAT FIELDS=(F1:1,84,F2:14,2,F2:20,2,?)
OUTREC IFTHEN=(WHEN=(89,1,CH,EQ,C'1'),
OVERLAY=(85:X'000C',87:X'000C'))
Please let me know how to do this.
I could see JNF1JMSG and JNF2JMSG does not have matched and unmatched records count and also I need to have these details in file.
Code'd and de-pickled