Split 1 file into n files



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Split 1 file into n files

Postby jkkarthik » Thu Oct 14, 2010 1:52 pm

Hi all,

I have the FB file which has n number of records. Each record has the header and footer.

If i have 10 records, I need to write 2 records each to the 5 files.

if i have 9 records, I need to write 2 records each to 4 files and 1 record to the fifth file.

Please help me.
jkkarthik
 
Posts: 3
Joined: Wed Jul 07, 2010 10:50 am
Has thanked: 0 time
Been thanked: 0 time

Re: Split 1 file into n files

 

Re: Split 1 file into n files

Postby NicC » Thu Oct 14, 2010 2:41 pm

Google 'dfsort tricks' and read the PDF for the first item. You will find a section on splitting files.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Split 1 file into n files

Postby jkkarthik » Thu Oct 14, 2010 4:02 pm

Thanks Nic... the document is really helpful for me.
jkkarthik
 
Posts: 3
Joined: Wed Jul 07, 2010 10:50 am
Has thanked: 0 time
Been thanked: 0 time


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post