now sort with extract only 2 records as the third condition does not match with the input file keys. Is there a way that I copy all the unmatched conditons into another file like in the above case copying the key '33333' into a different file which shows the ones which were not found in the input file.
You can use a DFSORT/ICETOOL job like this to get what you want. Just set up a file with the conditions instead of putting them in an INCLUDE statement as shown. I used 'F2' to identify the conditions (but you can use any id you like). Make sure the two files in the concatenation have the same LRECL.
Note that if you already have the INCLUDE statement and don't want to put the conditions in a file manually, you could use the INCLUDE statement as an input file and have DFSORT create an output file for the conditions automatically that you can use in the concatenation.