Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to split 4,000,000 records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
jmreddymca
Warnings : 1

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Tue May 13, 2008 3:35 pm    Post subject: How to split 4,000,000 records
Reply with quote

Hi Friends,

I have 1 flat file having 4,000,000 records. I want to split that into 4 different files. I tried it with sort skip & file also its not possible to me. I'm facing space & contention errors.
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue May 13, 2008 8:31 pm    Post subject:
Reply with quote

jmreddymca,

You can use a DFSORT job like the following to do what you asked for:

Code:

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...  input file
//OUT1 DD DSN=...  output file1
//OUT2 DD DSN=...  output file2
//OUT3 DD DSN=...  output file3
//OUT4 DD DSN=...  output file4
//SYSIN DD *
  OPTION COPY
  OUTFIL SPLIT1R=1000000,FNAMES=(OUT1,OUT2,OUT3,OUT4)
/*


Quote:
I'm facing space & contention errors.


Those really have nothing to do with DFSORT. You need to allocate each OUTn data set large enough to contain all of the records written to it. As for the contention problems, I don't know if you'll still have them with the job above, but if you do, again that's something you'll need to resolve yourself based on your environment.
Back to top
View user's profile Send private message
marygeorge

New User


Joined: 02 Jun 2008
Posts: 1
Location: chennai

PostPosted: Tue Jun 03, 2008 12:30 pm    Post subject: splitting the file when the input record into difftent file
Reply with quote

Hi,

I have a scenario like I have to split the input file into many output files depending on the number of records in the i/p file.

Here the situation is like the i/p record count can vary always.And in the o/p a single file can contain max of 60000 recods.

The above one should done through JCL.Please help me out.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Jun 03, 2008 9:21 pm    Post subject:
Reply with quote

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/
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us