Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Create number of output files depending on

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Create number of output files depending on
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    Post subject: Re: Create no of OP files depending on no of records of IP f
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    Post subject:
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    Post subject: Re: Create no of OP files depending on no of records of IP f
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    Post subject:
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    Post subject: Re: Create no of OP files depending on no of records of IP f
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    Post subject:
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    Post subject: Re: Create no of OP files depending on no of records of IP f
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    Post subject:
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    Post subject: Re: Create no of OP files depending on no of records of IP f
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 8 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us