Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us