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
 

 

A single job to run 2 programs 100 times

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: A single job to run 2 programs 100 times
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

Moderator Team Head


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

PostPosted: Thu Nov 30, 2006 12:35 am    Post subject: Re: A single job to run 2 programs 100 times
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    Post subject: Re: A single job to run 2 programs 100 times
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: 3158
Location: Tucson AZ

PostPosted: Thu Nov 30, 2006 4:00 am    Post subject:
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Nov 19, 2013 2:08 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


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