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: 2455
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
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

Senior Member


Joined: 29 Apr 2008
Posts: 2011
Location: USA

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 Replace each space in cobol string wi... COBOL Programming 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top