Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to abend the Jcl in particular step manually

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

New User


Joined: 07 Jun 2004
Posts: 20

PostPosted: Fri Jun 11, 2004 6:01 pm    Post subject: How to abend the Jcl in particular step manually
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    Post subject:
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: 29
Location: pune

PostPosted: Wed Apr 13, 2005 3:22 pm    Post subject:
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Mon Jul 18, 2005 7:52 pm    Post subject: Re: How to abend the Jcl in particular step manually
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Mon Jul 18, 2005 9:44 pm    Post subject: Re: How to abend the Jcl in particular step manually
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Tue Jul 19, 2005 4:26 pm    Post subject: Re: How to abend the Jcl in particular step manually
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Tue Jul 19, 2005 6:24 pm    Post subject: Re: How to abend the Jcl in particular step manually
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 6 Fri Sep 22, 2017 7:08 am
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us