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 

Dynamic File Splitting in a JCL with 'n' records each

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
subamca
Beginner


Joined: 25 Jan 2005
Posts: 2
Topics: 1
Location: Seattle, WA

PostPosted: Tue Apr 10, 2007 6:19 pm    Post subject: Dynamic File Splitting in a JCL with 'n' records each Reply with quote

Can anyone suggest how to split an input file with 'N' records to multiple files of given count of records? This task should be achieved through a JCL.

Please suggest your solutions at the earliest. Thanks.
_________________
Rgrds,
Suresh.
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Apr 10, 2007 6:30 pm    Post subject: Reply with quote

subamca,

Please SEARCH before posting. check these links

http://www.mvsforums.com/helpboards/viewtopic.php?t=5618&highlight=split

http://www.mvsforums.com/helpboards/viewtopic.php?t=2371&highlight=split

http://www.mvsforums.com/helpboards/viewtopic.php?t=7381&highlight=split

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Apr 10, 2007 6:35 pm    Post subject: Reply with quote

Suresh,

You can use DFSORT's SPLIT1R=n option. For details, see the "Split a file to n output files dynamically" Smart DFSORT Trick at:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
subamca
Beginner


Joined: 25 Jan 2005
Posts: 2
Topics: 1
Location: Seattle, WA

PostPosted: Tue Apr 10, 2007 9:12 pm    Post subject: Thanks Reply with quote

Thanks a lot. It worked perfect.

kolusu wrote:
subamca,

Please SEARCH before posting. check these links

http://www.mvsforums.com/helpboards/viewtopic.php?t=5618&highlight=split

http://www.mvsforums.com/helpboards/viewtopic.php?t=2371&highlight=split

http://www.mvsforums.com/helpboards/viewtopic.php?t=7381&highlight=split

Hope this helps...

Cheers

Kolusu

_________________
Rgrds,
Suresh.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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