Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Submit job from Cobol with input data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 149
Location: Coimbatore

PostPosted: Wed Feb 01, 2017 12:41 pm    Post subject: Submit job from Cobol with input data
Reply with quote

Hi,

I do have a requirement to submit a job from Cobol module several times based on the input feed. I have a doubt in this. I am Ok to develop a cobol program and dynamic file where job cards are created which will triggers the other job using ITRDR, but I need to pass input file to this job. If my cobol program has 5 input data, 5 times the job has to run with the input file provided. How would I create separate files every time the job executes ?. Is it possible ?. As the input data changes, I cant use the same file.

Can anybody suggest me a solution ?.

Thanks
Abdul rafi.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1932
Location: UK

PostPosted: Wed Feb 01, 2017 3:31 pm    Post subject:
Reply with quote

Why is this posted in the JCL & VSAM section of the forum and not the COBOL section?

Will your input data set (not file) always have 5 records in it so that you will always generate 5 jobs?
Back to top
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 149
Location: Coimbatore

PostPosted: Wed Feb 01, 2017 3:47 pm    Post subject:
Reply with quote

Sorry that I posted it here.

My input data can have even more than 5 records.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Wed Feb 01, 2017 4:14 pm    Post subject: Reply to: Submit job from Cobol with input data
Reply with quote

Quote:
My input data can have even more than 5 records.
icon_confused.gif

You will have to do a better job explaining the requirement
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 227
Location: Maryland

PostPosted: Thu Feb 02, 2017 10:04 pm    Post subject: Re: Submit job from Cobol with input data
Reply with quote

abdulrafi wrote:
I do have a requirement to submit a job from Cobol module several times based on the input feed. I have a doubt in this. I am Ok to develop a cobol program and dynamic file where job cards are created which will triggers the other job using ITRDR, but I need to pass input file to this job. If my cobol program has 5 input data, 5 times the job has to run with the input file provided. How would I create separate files every time the job executes ?. Is it possible ?. As the input data changes, I cant use the same file.

Why not to submit the job 5 times via INTRDR, with different input dataset (DSNAME, or whatever?), plus different (updated) DSNAME for output dataset each time?

What actually is the problem?
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 Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us