If I understand this correctly I need a different solution depending on if I have duplicates in input1 or input2, is this true? My situation is that input1 consists of roughly 10.000 records and input2 about 350.000 records, and I have no idea how or where duplicates exist. I take this as there is no universal solution in DFSORT for matching records based on a key in this manner... Guess I need to write a program instead :-( But thanks anyway. Rob
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

