View previous topic :: View next topic |
Author |
Message |
mahesh_chv Beginner
Joined: 04 Aug 2005 Posts: 41 Topics: 16
|
Posted: Mon Nov 10, 2008 10:41 pm Post subject: Splitting of the Mainframe file |
|
|
Hi ,
I have a requirement where in the our mainframe file it sent to java for further processing. whenever the file size is big , its failing on the java side. Whenever this happens , we used to split our mainframe file by using sync sort and send the files for further processing.
We would like to automate this process and in that process I would like to know how can we create the datasets dynamically ?
for example,
consider a scenario where in my Mainframe file is having 52,300 records.
I would like to split this file into smaller ones containing 10000 records each. The mainframe job should create 6 datasets ( 5 datasets with 10000 records and the 6 th one with 2300 records ) . Right now we manually check the file for the total count of the records and decide the number of datasets we need to create and go for a sync sort split .
tomorrow if the Mainframe files contains 45000 records, the jcl should be intelligent enough to split it into 5 files ( 4 files with 10k records and 5 th with 5k records ) .
Can I acheive this without manually checking the total records in the file and deciding the number of files it has to split ?
Thanks,
Mahesh |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
mahesh_chv Beginner
Joined: 04 Aug 2005 Posts: 41 Topics: 16
|
Posted: Tue Nov 11, 2008 10:32 pm Post subject: |
|
|
Thank you kolusu .....
But we use Sync Sort in our shop |
|
Back to top |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Mon Nov 17, 2008 4:27 pm Post subject: |
|
|
Look for SPLIT1R in the link Kolusu provided. The trick should work for Syncsort too. |
|
Back to top |
|
|
|
|