View previous topic :: View next topic
|
Author |
Message |
mihirk82
New User
Joined: 18 May 2006 Posts: 8 Location: mysore,karnataka
|
|
|
|
I have a input file and i want to create number of output files depending on number of records of input file.
Thanks |
|
Back to top |
|
|
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
..and you want us to do what exactly based on your statement? |
|
Back to top |
|
|
mihirk82
New User
Joined: 18 May 2006 Posts: 8 Location: mysore,karnataka
|
|
|
|
yes exactly, thanks for your co-operation |
|
Back to top |
|
|
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
OK I'll try again,
Do you want to know?...
How to write the code?
Must it be a Cobol solution? If not, what else is acceptable?
How to set up the JCL?
General design concept?
Know if there are any limitations to you requirements?
Be given examples of any of the above?
Etc etc etc etc etc
Because there are so many possible answers to your very general query what will happen is that either nobody will reply because we don?t know what you want exactly or someone will reply giving an answer to which you will come back and say that it's not quite what you wanted !
Please, please be more specific. |
|
Back to top |
|
|
mihirk82
New User
Joined: 18 May 2006 Posts: 8 Location: mysore,karnataka
|
|
|
|
I'm sorry for that but i want to know cobol solution and jcl set up.
Thanks |
|
Back to top |
|
|
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
What is the corelation betwen the number of records in your input file and the number of output files you want to create?
1 to 1 ?
2 to 1 ?
20 to 1 ?
1 to 2 ?
soemthing else ? |
|
Back to top |
|
|
mihirk82
New User
Joined: 18 May 2006 Posts: 8 Location: mysore,karnataka
|
|
|
|
Hi,
Actually i have a input file, containing name, e-mail, department etc.
and i have to send diffrent files to diffrent mail id for that i need to create two parm card for each e-mail.
The file which we will be sending will be generated from diffrent program.
Thanks for your support |
|
Back to top |
|
|
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
Lets see if I've got it now
1. Input file with unknown number of records.
2. create a new output file for each input record
3. each output file contains two parms
4. each output file will be processed later with a corresponding file (not a concern for this immediate process)
Got examples of inputs and outputs? |
|
Back to top |
|
|
mihirk82
New User
Joined: 18 May 2006 Posts: 8 Location: mysore,karnataka
|
|
|
|
ya that's correct |
|
Back to top |
|
|
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
1. there is a limit to the number of DD statements in a step (1635) so that may have a bearing on you proposed design.
2. Could you give me a clue as to what you are doing at the other end which requires a seperate parm file for each file to be sent.
I was wondering if you could consider merging the two processes |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
hi,
You can seperate this in two steps.
1. In the first step, ceate a JCL with the number and names of DD statements depending on the input file. This can be done through a COBOL program.
2. Run that JCL that is just created for the actual COBOL program.
however, there is a cap on how many DD statements you can have in a step. |
|
Back to top |
|
|
cheetz007
New User
Joined: 10 Aug 2006 Posts: 23
|
|
|
|
Not being funny here, but wouldn't it be better to write a program to do what you want to do???
Easytrieve works well - want to send me the spec.? |
|
Back to top |
|
|
|