IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can DFSORT output equal number of rows to multiple outputs?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
HammerTime

New User


Joined: 26 Sep 2012
Posts: 14
Location: UK

PostPosted: Thu May 01, 2014 3:11 pm
Reply with quote

Hi all, we use parallel processing in a number of our JCL's. Where the output is used against a specific table, we would choose the output 'split' based on the table partitioning ranges.

However, I have a series of jobs which run in parallel where we don't care so much about what goes in to each file, but what I would like to do is find a way of splitting the input into even sized output files.

For example:
Code:

Input File: (12 recs)
----------
abc123
qwer7445
powe456
iopweg3456
poi345
heqw235
etio25
uewewe79789
we8323
opg732
poijjd4355
klre346

Desired outputs:

File1:
-------
abc123
qwer7445
powe456

File2:
-------
iopweg3456
poi345
heqw235

File3:
-------
etio25
uewewe79789
we8323

File4:
-------
opg732
poijjd4355
klre346


The number of records incoming daily will vary by a huge amount, so if I just use STARTREC and ENDREC it would mean on low volume days, I wouldn't be using all of the output files, and therefore not making the most of my parallel executions.

If there was a way I could dynamically spread the records across the outputs so they were all about even, it would allow the shortest possible execution time.

Is there any such functionality in DFSORT/ICETOOL?
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Thu May 01, 2014 3:21 pm
Reply with quote

theres a SPLIT functionality in DFSORT.

ibmmainframes.com/about8764.html
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7310
Location: Inside the Matrix

PostPosted: Thu May 01, 2014 3:38 pm
Reply with quote

Dave, Rohit too.

I'm going to ban just plain links to topics which are more than two years old.

HammerTime, certainly do as Dave says, and look at SPLIT and its cousins.

In attempting to do splits with STARTREC and ENDREC have you verified that you don't read the "front" of your file multiple times?

If SPLIT & Co don't do what you need, there is always a one-pass solution with code.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10781
Location: italy

PostPosted: Thu May 01, 2014 8:16 pm
Reply with quote

IMO
how to split a file should be added to the [in]famous category of
the topics no longer eligible for discussion
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. How to search multiple strings in a PDS IBM Tools 3
No new posts How to search multiple members of a P... JCL & VSAM 13
No new posts Combining Multiple Row Values into Si... DB2 3
No new posts "Output" internal table (OD... COBOL Programming 0
No new posts Write records with 3 or less rows in ... DFSORT/ICETOOL 3
Search our Forums:

Back to Top