Author: Arun Raj
Posted: Tue Feb 07, 2017 3:11 am (GMT 5.5)
scdinesh,
Since you need to write the entire record area from both the inputs, your REFORMAT should include both F1 and F2 fields. Something like,
Your OFILE1 (matched records from input1) and OFILE2 (matched records from input2) should both INCLUDE 'B' records, but write only F1 and F2 records respectively into each of those outputs.
Similarly for OFILE3 (unmatched from input1) and OFILE4 (unmatched from input2) write relevant fields to output in the BUILD.
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard
Posted: Tue Feb 07, 2017 3:11 am (GMT 5.5)
scdinesh,
Since you need to write the entire record area from both the inputs, your REFORMAT should include both F1 and F2 fields. Something like,
Code: |
REFORMAT FIELDS=(F1:1,80,F2:1,80,?) |
Your OFILE1 (matched records from input1) and OFILE2 (matched records from input2) should both INCLUDE 'B' records, but write only F1 and F2 records respectively into each of those outputs.
Similarly for OFILE3 (unmatched from input1) and OFILE4 (unmatched from input2) write relevant fields to output in the BUILD.
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard