Splitting of n files

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Splitting of n files

Postby vidhya gokulkumar » Wed May 12, 2010 10:14 am

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.

vidhya gokulkumar
Posts: 2
Joined: Wed May 12, 2010 10:09 am
Has thanked: 0 time
Been thanked: 0 time

Re: Splitting of n files


Re: Splitting of n files

Postby Robert Sample » Wed May 12, 2010 5:25 pm

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.
Robert Sample
Global moderator
Posts: 3431
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 239 times

Re: Splitting of n files

Postby Frank Yaeger » Wed May 12, 2010 10:51 pm


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.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
Posts: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times

Return to JCL


  • Related topics
    Last post