I have a requirement in which I have to compare today's and previous day's file.
The file LRECL is 479
If the record is new in today's file then I need to write to a output file of the same LRECL with a CODE 'A' in the 470th position. If a record in previous day's file is not present in the current file, then I need to check the purge file which is of the same LRECL and write to the same output file with the CODE 'D' in the 470th position only if the record is not present in the history file. Also if the record in previous day's file of the same key doesn't match with the record in today's file then the output file should be written with the Code 'C' in 470th position.
There will be no duplicates in the file. Also the keys will be the first 38 bytes
Also I want to display in the sysout the number of records added, deleted and changed. I posted this in the DFSORT forum but the suggestion given by them using ICETOOL uses WHEN=GROUP which is not supported by SYNCSORT.
Can you please let me know if this is possible in SYNCSORT? Your help is greatly appreciated