I would like to identify the matching and non-matching recs of an input file against the master file. I had written a sort card to get the results. However, I will have to include another logic to filter the matching recs based on a value.
For e.g. See below the sample content of the files
However, I would like to write only the matching recs, which has the 1st two chars in matching key as 'ME' into matching file, else, I will have to write it into non-matching file.
I will have to consider given 8 bytes as the key field.
I can use IFTHEN=, however, the non matched will not be written into non matching file, if I use this logic. Please provide some suggestions to get the desired matching/non matching file.