I have two input files with account numbers (9 bytes). For example, file A is the master file and file B is deletion file. I have to compare file B against file A and if the account number from file B is matched with file A, then I need to omit those account numbers in the output file and write the output file from file A only if there is no matching account numbers with file B.
DFSORT is perfectly capable of processing VSAM KSDS
the fact that one of the files is a GDG generation ( NOT VERSION ) is completely irrelevant ..
being a GDG generation affects only the DATASET naming convent, retention and catalog mangement
THE CONTENT IS NOT AFFECTED ...
remember that a SORT application ALWAYS create a new dataset ,
usually a VSAM KSKD dataset name is something a bit more static
anyway look at any JOINKEYS examples in the forums
keeping/excluding the records that are/are not in the other file