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

How to abend the Jcl in particular step manually


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srinivas.u

New User


Joined: 07 Jun 2004
Posts: 19

PostPosted: Fri Jun 11, 2004 6:01 pm
Reply with quote

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
View user's profile Send private message
rick

New User


Joined: 18 Jun 2004
Posts: 59
Location: Chennai

PostPosted: Fri Jun 18, 2004 4:07 pm
Reply with quote

Hi,

Check out the condition code and skip the steps


~RICK~
Back to top
View user's profile Send private message
bshkris

New User


Joined: 21 Mar 2005
Posts: 41
Location: pune

PostPosted: Wed Apr 13, 2005 3:22 pm
Reply with quote

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
View user's profile Send private message
rssomm

New User


Joined: 05 Jun 2005
Posts: 41
Location: Hyderabad

PostPosted: Mon Jul 18, 2005 1:11 pm
Reply with quote

Code COND=(0000,ne) in the EXEC parameter of the step where do u want to abend the job.


Madhu
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Jul 18, 2005 7:52 pm
Reply with quote

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
View user's profile Send private message
rssomm

New User


Joined: 05 Jun 2005
Posts: 41
Location: Hyderabad

PostPosted: Mon Jul 18, 2005 9:28 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Jul 18, 2005 9:44 pm
Reply with quote

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
View user's profile Send private message
rssomm

New User


Joined: 05 Jun 2005
Posts: 41
Location: Hyderabad

PostPosted: Tue Jul 19, 2005 7:50 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Jul 19, 2005 4:26 pm
Reply with quote

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
View user's profile Send private message
rssomm

New User


Joined: 05 Jun 2005
Posts: 41
Location: Hyderabad

PostPosted: Tue Jul 19, 2005 4:55 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Jul 19, 2005 6:24 pm
Reply with quote

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
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Call an hlasm from REXX in batch and ... CLIST & REXX 4
No new posts What is the most complex abend you've... Mainframe Interview Questions 8
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top