View previous topic :: View next topic |
Author |
Message |
ranga_subham Intermediate

Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Thu Mar 09, 2006 9:05 am Post subject: Dynamically splitting a huge file into equal pieces !! |
|
|
Hi,
Please provide me your suggestions/solutions to achieve the following:
A production job runs daily and creates a huge file with 'n' number of records. Except REXX, I want to use a utility (assuming SYNCSORT with COUNT) to know the 'n' number of records from this file and want to split the file into equal output files (each output file should have 1,00,000 records). How to achieve it dynamically if records vary on daily basis? On a given day we may get 5,00,000 and on the other day we may get 8,00,000 records. So, depending on the count I need to split the input file into 5 or 8 pieces for further processing. After this processing (suppose a COBOL program) I may again get 5 or 8 files. So, I need to merge all these files as single file and need to FTP it to remote customer server. How to automatize this situation?
Please provide your suggestions/solutions/ideas to this problem. Please let me know if you need more inputs/details.
Note: REXX is ruled out by customer.
Please help me out.
Thanks for your time. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
ranga_subham Intermediate

Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Thu Mar 09, 2006 11:47 pm Post subject: Thanks. |
|
|
Hi Kolusu,
Thanks for the link. May I ask you this that does this solution work for SYNCSORT? We have syncsort installed at our shop.
Please suggest.
Thanks a lot once again. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Fri Mar 10, 2006 5:28 am Post subject: |
|
|
Quote: |
May I ask you this that does this solution work for SYNCSORT? We have syncsort installed at our shop.
|
ranga_subham,
*SIGH* Did you even bother to read what is in that link ? If you had read it carefully then you would have found this statement in the FIRST Line of that post.
Quote: |
If you have syncsort at your shop then use synctool as pgm in step0100.
|
kOLUSU _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ranga_subham Intermediate

Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Fri Mar 10, 2006 8:02 am Post subject: Oops.......Sorry. |
|
|
Kolusu,
Extremely sorry. Thanks for your patience.  _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard |
|
Back to top |
|
 |
|
|