I have an input file with two records in which ORDER1, STORE1 AND 12345 are the common keys for both the records.
INPUT FILE
INREC1 12345 00000 ORDER1 STORE1 12
INREC2 23797 12345 ORDER1 STORE1 14
INREC1 12345 00000 ORDER1 STORE1 12
INREC2 23797 12345 ORDER1 STORE1 14
I am expecting the addition to happen if the key fields mentioned above matches.
OUTPUT FILE
INREC2 23797 12345 ORDER1 STORE1 26
INREC2 23797 12345 ORDER1 STORE1 26
Could you please suggest on how I can achieve this ?