I have two files with LRECL=236, I want to compare a specific field in each record of file1 with each record in file2. if there is more than one hit in file2 then delete the matched records in file2 by keeping only one record for that field. Is there any way of doing this using Sort card.
The output should be
basically i have all unwanted records in file1. I jus want to chk whether that unwanted rec is present more than once in file2. the file2 should have all unwanted records only once along with other records of file2.
instead of writing a cobol pgm i am jus trying it using a jCL.