View previous topic :: View next topic
|
Author |
Message |
srinivas.u
New User
Joined: 07 Jun 2004 Posts: 19
|
|
|
|
hai
i am submit jcl in ten steps.
If any error occured in the 5th step of your jcl
how to abend jcl in manual.
if possiable give a mail |
|
Back to top |
|
|
rick
New User
Joined: 18 Jun 2004 Posts: 59 Location: Chennai
|
|
|
|
Hi,
Check out the condition code and skip the steps
~RICK~ |
|
Back to top |
|
|
bshkris
New User
Joined: 21 Mar 2005 Posts: 41 Location: pune
|
|
|
|
if no of steps are less then make comment on the steps which u don't wish to execute, and run it. if no of steps are more better u use cond parameters. |
|
Back to top |
|
|
rssomm
New User
Joined: 05 Jun 2005 Posts: 41 Location: Hyderabad
|
|
|
|
Code COND=(0000,ne) in the EXEC parameter of the step where do u want to abend the job.
Madhu |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi srinivas.u,
Quote: |
If any error occured in the 5th step of your jcl
how to abend jcl in manual. |
If any error occured in STEP5... STEP5.RC will be greater than zero...
Call ABEND after STEP5 with COND=(0,EQ,STEP5)....
Regards,
Priyesh. |
|
Back to top |
|
|
rssomm
New User
Joined: 05 Jun 2005 Posts: 41 Location: Hyderabad
|
|
|
|
Hi Priyesh..
I am afraid if cond parameter coded as suggested by you, the subsequesnt steps after STEP5 will be executed even if STEP5 RC > 0.
Call ABEND after STEP5 with COND=(0,EQ,STEP5)....
Excuse me if I am wrong...
Madhu |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hello Madhu,
Quote: |
I am afraid if cond parameter coded as suggested by you, the subsequesnt steps after STEP5 will be executed even if STEP5 RC > 0. |
COND=(0,EQ,STEP5) means the concern step (ABEND in My case) will only execute if STEP5.RC is not equals to ZERO. If ABEND is being executed, Job should not go ahead.
Please correct me if I m wrong.
Regards,
Priyesh. |
|
Back to top |
|
|
rssomm
New User
Joined: 05 Jun 2005 Posts: 41 Location: Hyderabad
|
|
|
|
Hi Priyesh...
It looks like there is some miscommunication. The question what I understood is If STEP5 RC NE 0, any subsequent steps I.e from Step6 to step10 shouldn't be executed.
If what I understood is correct, Then the COND parameter for all steps from STEP6 to STEP10 shouldbe coded as follows.
COND = (0,NE,step5) . Since STEP5 RCnot=0, the condition is satisfied and execution of steps will be bypassed.
if there is a step called like ABEND and the requirement is to execute that step in case of STEP5 RC > 0, then the COND = (0,EQ,step5) should be coded only in the Step ABEND and in the rest of the steps it should be COND = (0,NE,step5) .
Thank You.
Madhu |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi Madhu,
Quote: |
if there is a step called like ABEND and the requirement is to execute that step in case of STEP5 RC > 0, then the COND = (0,EQ,step5) should be coded only in the Step ABEND |
This is what exactly I m saying....You can check with earlier replies.....
Quote: |
and in the rest of the steps it should be COND = (0,NE,step5) . |
Do we really Need this after calling ABEND in between.....
Regards,
Priyesh. |
|
Back to top |
|
|
rssomm
New User
Joined: 05 Jun 2005 Posts: 41 Location: Hyderabad
|
|
|
|
Hi Priyesh,
Normally ABEND step willbe coded at the end of the job as last step. If Step5 rc > 0 and want to bypass step6 to step10, we must code cond=(0000,ne,step5).
Is there any way to call step ABEND? I am not sure
Thank You.
MADHU |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
Is there any way to call step ABEND? I am not sure |
Is not your first line answering this question...."Normally ABEND step willbe coded at the end of the job as last step"
Just this last step needs to come after STEP5....
Regards,
Priyesh. |
|
Back to top |
|
|
|