Peter, As a postscript to my earlier note, I can explain why you are not getting the sequence numbers the way you expected. DFSORT does NOT restart the SEQNUM at 1 for each SORTINxx. However, ...
INREC is processed before MERGE. For a MERGE, DFSORT first reads one record from each SORTINxx file. DFSORT reads SORTIN01 record 1 and INREC sets it's SEQNUM to 1. DFSORT reads SORTIN02 record 1 and INREC sets it's SEQNUM to 2. DFSORT reads SORTIN03 record 1 and INREC sets it's SEQNUM to 3. DFSORT reads SORTIN04 record 1 and INREC sets it's SEQNUM to 4. So your DUMMY trailer record (SORTIN04 record 1) gets 4 as it's SEQNUM. If you want the DUMMY trailer record to get the last SEQNUM, you would have to use OUTREC, which which is processed after MERGE to set the SEQNUM, rather than INREC which is processed before MERGE. Frank Yaeger - DFSORT Development Team (IBM) - [email protected] Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

