Basically I need two compare the first file with second file and if any changes in second file then I need to write the second file changes and not first file changes.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
nnaveenreddy,
DFSORT/ICETOOL did what you told it to. It found all of the unique records from your input concatenation of file1 and file2.
Quote:
But my output should come as
7Record7X
6Record6X
2Recor22X
4Recor44X
Basically I need two compare the first file with second file and if any changes in second file then I need to write the second file changes and not first file changes.
How does 6Record6X fit with those rules? It comes from file1 but you say you only want records from file2. So I would expect your output to be:
Code:
7Record7X
4Recor44X
2Recor22X
If that's not the output you want, then you need to explain the rules for getting from input to output.
If that is the output you want, then here's a DFSORT/ICETOOL job that will give you that output: