Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
This would be a good application for your sort tool (DFSORT or Syncsort - we obviously don't know which one you have). It could read your data, determine how many output DD's will be needed and maybe create a series of dynamic names and allocation statements, then format and arrange the data. Then, a set of proper DD and SORT statements could be written out and stored.
Then, your next job could use those details to perform the actual split.
Or, as already stated, you could do this programatically. A lot depends on what's acceptable to you and your shop and how you want to implement this.