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

Submit job from Cobol with input data


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

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Wed Feb 01, 2017 12:41 pm
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: 2448
Location: Hampshire, UK

PostPosted: Wed Feb 01, 2017 3:31 pm
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: 184
Location: Coimbatore

PostPosted: Wed Feb 01, 2017 3:47 pm
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

Senior Moderator


Joined: 14 Mar 2007
Posts: 10712
Location: italy

PostPosted: Wed Feb 01, 2017 4:14 pm
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 Member


Joined: 29 Apr 2008
Posts: 924
Location: Maryland

PostPosted: Thu Feb 02, 2017 10:04 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts SKIP LOCKED DATA in UPDATE statement DB2 9
No new posts Using sort on VB records based on off... DFSORT/ICETOOL 6
This topic is locked: you cannot edit posts or make replies. Passing a field name to COBOL program COBOL Programming 10
No new posts COBOL Performance Tuning COBOL Programming 6
No new posts JOINKEYS to match two input files on ... DFSORT/ICETOOL 3
Search our Forums:

Back to Top