Wayne Bickerdike wrote:
>David had it first but thanks Frank, I always love the things DFSORT can
do.
>
>I recently had to do the same thing but used IDCAMS viz:
>
>...
> REPRO IFILE(INDD1) OFILE(OUTDD1) COUNT(100000)
> REPRO IFILE(INDD1) OFILE(OUTDD2) SKIP(100000) COUNT(100000)
> REPRO IFILE(INDD1) OFILE(OUTDD3) SKIP(200000)
Note that this IDCAMS method requires three passes over the input data
whereas
the following method with DFSORT only requires one pass over the input
data:
OPTION COPY
OUTFIL FNAMES=(OUT1,OUT2,OUT3),SPLIT1R=100000
For more on different ways to split a file using DFSORT, see the "Split a
file
to n output files dynamically" and "Five ways to split a data set" Smart
DFSORT
Tricks at:
http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Frank Yaeger - DFSORT Development Team (IBM) - [EMAIL PROTECTED]
Specialties: PARSE, JFY, SQZ, ICETOOL, IFTHEN, OVERLAY, 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: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html