View previous topic :: View next topic
|
Author |
Message |
ribinmathew
New User
Joined: 13 Jan 2009 Posts: 5 Location: Pune
|
|
|
|
Hi All,
I have a query in file handling using SYNCSORT. Even though a topic similar to this has already been discussed, posting it again since my requirement differs.
I have a file, ‘PROJ.ABC.DEF’ with say some 500,000 records. (The count of the records vary in each case.)
I need to split this huge file ‘PROJ.ABC.DEF’, into smaller files with each file containing only a maximum of 80000 records.
So is it possible to do so by using ‘SYNCSORT’ so that the first file contains the first 80000 records, the second file containing next 80000 records and so on.
The requirement in my case is that the number of records in the output file which the job is creating, should be constant. (i.e. 80000 records) And the number of records the input file in each case will vary from thousands to lakhs. So can anyone help me in finding out a generic solution.
Thanks in Advance,
Ribin |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
Back to top |
|
|
ribinmathew
New User
Joined: 13 Jan 2009 Posts: 5 Location: Pune
|
|
|
|
Hi,
Many thanks for the pointer. My requirement exactly matches with this post. I tried running this job and got executed fine. But the output files are not getting created. The only change i made is that i customized the job card and also i added the dispostion to the below area where we mention the input file ;
Code: |
[b]//IN DD DSN= Your.input.file,DISP=SHR[/b] |
and customized to contain 80000 records each in each output file getting created. It ran fine. But no output files were created. Since I'm new to SYNCTOOL utility, i couldn't understand the code and the syntaxes so as to debug. So it would so helpful if you can explain the job.
Thanks in Advance,
Ribin |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
ribinmathew,
I am not sure about the changes done by you. Can you post the unedited JCL and the DFSMSG messages from your job run using "Code" tags. |
|
Back to top |
|
|
|