I need to amend my post, it should be: SORT FIELDS=COPY OUTFIL FILES=01,ENDREC=250000 OUTFIL FILES=02,STARTREC=250001
I spotted this after reading Peter Hunkeler's post. John Reda Syncsort, Inc. 201-930-8260 -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Reda, John Sent: Monday, August 06, 2007 10:09 AM To: [email protected] Subject: Re: Split a large file into two parts Your solution will work but it requires 2 passes of the data. Try this instead, it only requires 1 pass. SORT FIELDS=COPY OUTFIL FILES=01,ENDREC=250000 OUTFIL FILES=02,STARTREC=250000 ---------------------------------------------------------------------- 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

