View previous topic :: View next topic
|
Author |
Message |
h.dinesh
New User
Joined: 06 Dec 2006 Posts: 46 Location: Chennai
|
|
|
|
Hi All,
Let us assume there are 10 steps in a JCL. We need to run steps 5 & 6 only without changing the JCL steps. Is there any way to do this?
I know a way to do this by using IEBEDIT but is it possible to achieve this by changing the jobcard?
Is there anyother way other than using condition codes for the steps? (it may be generic or specific to the case I mentioned). |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Without changing the PROC, you must change the calling JCL, cond all the steps you dont want to execute:
Code: |
//JS01 EXEC THEPROC,COND.STEP1=(0,LT),COND.STEP2=(0,LT),COND.STEP3=(0,LT),COND.STEP4=(0,LT) ..
// COND.STEP10=(0,LT) |
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Anuj,
Should n't that be (0,LE)? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Arun,
What if some step ends up with return code zero ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Anuj,
Quote: |
What if some step ends up with return code zero ? |
In your example, the steps will execute, not be skipped. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
What if some step ends up with return code zero ? |
Anuj,
Adding to what Dick said,
0 is NOT Less Than 0, it 'll execute those steps and not bypass as explained here. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
My bad..I learn a lesson I should not log in to some resposible place when I had a fight with my "GF"... |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Anuj D. wrote: |
My bad..I learn a lesson I should not log in to some resposible place when I had a fight with my "GF"... |
Anuj,
Now that you've learnt a lesson because of your GF. Say Thanks to her. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Yup sure..I'll.. keeping the distance till where Her hand can swing..
And now lets get back to the origianl question please. |
|
Back to top |
|
|
h.dinesh
New User
Joined: 06 Dec 2006 Posts: 46 Location: Chennai
|
|
|
|
Hi All,
Thanks for your inputs.
Assume if it is not a PROC but a JCL executing few programs in various steps then is there anyother solution?
It is just for learning and understanding things not a requirement... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If it is not a proc, simply submit only the steps you want to run. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Anuj D. wrote: |
My bad..I learn a lesson I should not log in to some resposible place when I had a fight with my "GF"... |
More important lesson, do not fight with GF. Let's face it, they are ALWAYS right, or so I'm told |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
hmm..yup I think they are always.. |
|
Back to top |
|
|
|