Raj, These options handle the splitting for you, you need to search the posts about dynamically allocating datasets since the final process you design will need to keep allocating additional datasets based on the input.
For a non-production, or a 'I really do not care about performance' solution, I would turn to rexx where I can allocate a new dataset, start reading the input, and write however many records I want to the output file, close it, allocate a new dataset and continue reading and writing records to this dataset until I hit my limit, allocate another new dataset ...... until eof is reached. Existing posts explain how to do this in COBOL, too. On Mon, 14 May 2007 12:16:53 -0700, Frank Yaeger <[EMAIL PROTECTED]> wrote: >> The easiest is probably using the SPLITBY parameter of the >> ... > >Raj, >If you have access to DFSORT, you can use its SPLIT1R=n parameter instead >of SPLITBY=n. Whereas SPLITBY=n rotates the records back to the first >output file (which is not desirable in your case), SPLIT1R=n will continue >to write the extra records to the last output file so each output file will >have contiguous records from the input file. > ---------------------------------------------------------------------- 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

