Hi all,
I´m having trouble achieving the complete output that i need.
The thing is, i need to receive two files, F1 and F2, and produce 3 output files.
The first file should contain the records that only are present in F1.
The second file should contain the records that only are present in F1.
The third file should contain the records that exist in both F1 and F2 but are differ.
The key is 01, 02, 03, ...
For example, assuming that F1 looks like this:
01 John 20
02 Rick 45
03 Anna 30
And F2 looks like this:
01 John 20
02 Rick 50
03 Frank 20
The desired output would be:
Output File 1 (only present in F1):
03 Anna 30
Output File 2 (only present in F2):
03 Frank 20
Output File 3 (updated/modified from F1 to F2 - should display what is present on F2):
02 Rick 50
Getting the first two files was simple using splice and searching here in the forum, but achieving the desired result for Output File 3 is more complicated.
Can anyone help?
Thank you,
Regards