Page 1 of 1

Splitting of n files

PostPosted: Wed May 12, 2010 10:14 am
by vidhya gokulkumar
Hi,
My requirement is to split the files thru JCL. My input file is not constant. It may contain 1000 records or 2000 or 3000 records...we are not sure about the maximum record count also. In this case, we have to split the file. Kindly help.

Thanks,
Vidhya

Re: Splitting of n files

PostPosted: Wed May 12, 2010 5:25 pm
by Robert Sample
JCL cannot do this. JCL does nothing but execute programs. These may be system utilities or programs you wrote, but that is all JCL can do.

If you had asked to do this with SORT, for example, there are many examples on this forum of how to do that (all you would have to do is search) -- but you asked for a JCL solution, so the answer is that it cannot be done.

Re: Splitting of n files

PostPosted: Wed May 12, 2010 10:51 pm
by Frank Yaeger
Vidhya,

Split the file how? You need to give more details of what you're trying to do. What are the rules for splitting the file?

There are several tricks for splitting files in the Smart DFSORT Tricks document at:

http://www.ibm.com/support/docview.wss? ... g3T7000094

Perhaps one of those will do what you want.