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

A single job to run 2 programs 100 times


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lakshminarayananv

New User


Joined: 29 Nov 2006
Posts: 2
Location: Banglore

PostPosted: Wed Nov 29, 2006 11:15 pm
Reply with quote

I need to know whether can we run 2 programs 100 times each alternatively in a single job.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Nov 30, 2006 12:35 am
Reply with quote

One job can include up to 255 steps. Two programs running for 100 times each would require 200 steps. So, it's definitely possible.

The best solution, sticking with a single job, would be to use a single Procedure for each of the program executions, and then create the job to use 100 steps, with each step calling the same Procedure.
Back to top
View user's profile Send private message
lakshminarayananv

New User


Joined: 29 Nov 2006
Posts: 2
Location: Banglore

PostPosted: Thu Nov 30, 2006 3:07 am
Reply with quote

Hi thanks for the immediate reply.. but according to u there should be 100 steps in that job.. can we execute with only 2 steps and using some looping technique....
coz.. i was asked in an Interview where i had no answers fot tht...


thank you.. n .. take care
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Nov 30, 2006 4:00 am
Reply with quote

Dang, that sounds like a challange.....grin.....

Does the interviewer know something "we" don't? 12.gif
Back to top
View user's profile Send private message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Thu Nov 30, 2006 10:50 am
Reply with quote

we can do it through application programs.

What we need to do is to write the JCL steps through the application language like cobol to the internal reader (INTRDR).

For example, if you are writing 100 JCL steps to the intrdr then all the steps in the Internal reader will be taken sequentially and be processed sequentially by the MVS system itself.

regards,
Gokul
Back to top
View user's profile Send private message
Kmr.deepakcs

New User


Joined: 11 Oct 2013
Posts: 37
Location: India

PostPosted: Tue Nov 19, 2013 12:53 pm
Reply with quote

yes we can do
like from mainjcl we call a procedure having 100 steps in procedure.
and in step2 of mainjcl we can call other proc having 100 steps
Code:

//job1 job
//lib   jcllib order=(your procedure library)
//step1 exec proc1   --> this proc have 100 steps.
//step2 exec proc2   -->this proc also have 100 steps.



Deepak kumar
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 19, 2013 2:08 pm
Reply with quote

I'm not sure how much that answer fits in but you're replying to a 7 year old thread; a thread which started with very loose question...

Though for a moment I was happy, as I thought that William is back until I realized his post dates back to 2006! icon_neutral.gif
Back to top
View user's profile Send private message
Kmr.deepakcs

New User


Joined: 11 Oct 2013
Posts: 37
Location: India

PostPosted: Tue Nov 19, 2013 5:42 pm
Reply with quote

Sorry anuj.i did nt see the date
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
Search our Forums:

Back to Top