View previous topic :: View next topic
|
Author |
Message |
lakshminarayananv
New User
Joined: 29 Nov 2006 Posts: 2 Location: Banglore
|
|
|
|
I need to know whether can we run 2 programs 100 times each alternatively in a single job. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
lakshminarayananv
New User
Joined: 29 Nov 2006 Posts: 2 Location: Banglore
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Dang, that sounds like a challange.....grin.....
Does the interviewer know something "we" don't? |
|
Back to top |
|
|
gokuldass
New User
Joined: 18 Mar 2005 Posts: 48 Location: india
|
|
|
|
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 |
|
|
Kmr.deepakcs
New User
Joined: 11 Oct 2013 Posts: 37 Location: India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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! |
|
Back to top |
|
|
Kmr.deepakcs
New User
Joined: 11 Oct 2013 Posts: 37 Location: India
|
|
|
|
Sorry anuj.i did nt see the date |
|
Back to top |
|
|
|