View previous topic :: View next topic |
Author |
Message |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Wed Jan 14, 2009 11:19 am Post subject: splitting a dataset into n datasets |
|
|
hello,
i need to resolve this problem:
A batch application program could write into its output sequential dataset 1.000.000 records , but sometimes 2.000.000 records and sometimes 500.000 records and so on ...
the next jcl step executes a sort having in sortin = the output sequential dataset... and as sortout ... here we are the problem...
i need to split into 5 datasets the sortout in this way:
if records in sortin = 1.000.000 perform 1.000.000 / 5 = 200.000
and write 200000 records each 5 datasets.
if records in sortin dataset = 2.000.000 then compute 2.000.000 / 5 = 400.000 ... so write 400000 records in each sortout datasets.
now , if records in input = 500.000 .. SORT will write 100000 in sortout dataset.
how can i do? |
|
Back to top |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
|
Back to top |
|
|
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Thu Jan 15, 2009 3:22 am Post subject: |
|
|
great! thanks a lot |
|
Back to top |
|
|
|
|