here is my requirement..! I have two files in hand.. I want to compare these two files and get a report as output which should show the key - followed by value which is different in file1 and value in file2.
Here is the example:
File 1 data
File 2 Data
Here first 6 characters are key. Followed by that I have data..
Now I wish to have my output as - Key - followed by first file's data which was different and then second file data's which was different..
123DEF 789 456
You show only one example with different data. I can think of many different variations but you haven't given clear rules for all of those variations. It also isn't clear if you're comparing the two files key by key or record by record, or whether you have duplicate records within a file?
Here are some other possible input examples that you haven't covered - there are many more.
You would need to a much better job of explaining the rules for getting from input to output for all variations before anyone can help you. But I suspect you won't be able to do what you want with DFSORT since it can't show the difference in records at specific positions.