MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Splitting of the Mainframe file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mahesh_chv
Beginner


Joined: 04 Aug 2005
Posts: 41
Topics: 16

PostPosted: Mon Nov 10, 2008 10:41 pm    Post subject: Splitting of the Mainframe file Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Nov 11, 2008 1:23 pm    Post subject: Reply with quote

mahesh_chv,

Check the smart DFSORT trick "Split a file to n output files dynamically" here

http://www.ibm.com/systems/support/storage/software/sort/mvs/tricks/index.html

Hope this helps...

Cheers
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mahesh_chv
Beginner


Joined: 04 Aug 2005
Posts: 41
Topics: 16

PostPosted: Tue Nov 11, 2008 10:32 pm    Post subject: Reply with quote

Thank you kolusu .....
But we use Sync Sort in our shop Crying or Very sad
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Nov 17, 2008 4:27 pm    Post subject: Reply with quote

Look for SPLIT1R in the link Kolusu provided. The trick should work for Syncsort too.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group