Joined: 05 Dec 2006 Posts: 177 Location: Seattle, WA
If this has been answered before, please forgive me!
I have two files that need to be compared. File 1 is 220 bytes; File 2 656 bytes. File 2 is built off File 1, but the dates are expanded from MMDDYY to CCYY-MM-DD format (yeah, I know - they didn't do Y2K correctly here) and some of the fields are in different order.
I am limited to File Aid, Beyond Compare and Syncsort. I tried to use FIle Aid XREF with no success, so now I am looking to Syncsort.
You did not mention here on which fields you want to do the comparison
Otherwise, the below job may help you to convert your first file date fields to expanded ones. I just considered the data you have shown in screen prints
Joined: 05 Dec 2006 Posts: 177 Location: Seattle, WA
Sorry - my bad.
Each field needs to be compared to its corresponding source field, and we recognize that the date fields will show as differences.
It's just trying to get AUDIT-ACCLTR-REF-NO in positions 103-107 of File 1 to be compared to DL-AUDIT-ACCLTR-REF-NBR in 189-196 of File 2 (as an example - each field is required to be compared to its resulting converted field).
Sigh. I wish they would just purchase Comparex and get it over with.
You have to create an intermediate file from your file2 there by adjusting the fields of file2 to be in line with file1. This way the comparison becomes easier. You can try this method and use ICETOOL SELECT on the fields to be compared to get the final output.
Op wanted a solution with SYNCSORT. ICETOOL is shipped with DFSORT.
I know this has been addressed many times in this forum and in others...
SyncSort ships ICETOOL as an alias to SYNCTOOL, so specifying PGM=ICETOOL in a SyncSort environment is valid.