Thanks Bill, that put me on the right track. Another regular poster also offered me some other options offline that might require fewer passes, which I am exploring.
I will report back for the archives when I figure out what I am going to use. Peter -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Woodger Sent: Monday, April 24, 2017 3:53 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SYNCSORT SEQNUM not restarting at 1 or incrementing by 1 for changes in RESTART value Also, your initial BUILD creates the extra byte which is used. You can change the subsequent BUILDs to OVERLAY which just change the one byte at column 5: (will save you one BUILD per record, you'll notice). If 220k+ were really large, you could also (since the test values are mutually exclusive) put the header and trailer processing before the WHEN=NONE. That you may not notice on 220k+ records. -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN