IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Create number of output files depending on


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mihirk82

New User


Joined: 18 May 2006
Posts: 8
Location: mysore,karnataka

PostPosted: Mon Aug 07, 2006 6:50 pm
Reply with quote

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
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Mon Aug 07, 2006 7:31 pm
Reply with quote

..and you want us to do what exactly based on your statement?
Back to top
View user's profile Send private message
mihirk82

New User


Joined: 18 May 2006
Posts: 8
Location: mysore,karnataka

PostPosted: Tue Aug 08, 2006 9:42 am
Reply with quote

yes exactly, thanks for your co-operation
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Tue Aug 08, 2006 6:50 pm
Reply with quote

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
View user's profile Send private message
mihirk82

New User


Joined: 18 May 2006
Posts: 8
Location: mysore,karnataka

PostPosted: Tue Aug 08, 2006 7:00 pm
Reply with quote

I'm sorry for that but i want to know cobol solution and jcl set up.

Thanks
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Tue Aug 08, 2006 7:17 pm
Reply with quote

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
View user's profile Send private message
mihirk82

New User


Joined: 18 May 2006
Posts: 8
Location: mysore,karnataka

PostPosted: Tue Aug 08, 2006 7:23 pm
Reply with quote

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
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Tue Aug 08, 2006 7:44 pm
Reply with quote

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
View user's profile Send private message
mihirk82

New User


Joined: 18 May 2006
Posts: 8
Location: mysore,karnataka

PostPosted: Wed Aug 09, 2006 9:48 am
Reply with quote

ya that's correct
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Wed Aug 09, 2006 3:45 pm
Reply with quote

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
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Mon Aug 14, 2006 4:05 pm
Reply with quote

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
View user's profile Send private message
cheetz007

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Mon Aug 14, 2006 7:56 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top