Joined: 25 Feb 2006 Posts: 38 Location: chennai-india
The requirement is if we have 2 sorted file both files has to be checked and the records which is not there in both files should be written in a new output file
all have same record format of LRECL=80
we dont use ice tool we use ordinary Sort utility
i need the output file to have only
The SORTIN DD statement brings in both files, sorts them (1,80,CH,A), and writes them to TEMPFILE. The SYNCTOOL program then copies all records from TEMPFILE and removes all duplicates (records exactly the same in positions 1 through 80). What are not duplicates should be written to the NODUPS DD statement.
If you used ALLDUPS instead of NODUPS, your NODUPS output file would contain only the duplicates.
I was not able to test the JCL because SYNCTOOL is not available to me.