Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL Abends Query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Amit Suri

New User


Joined: 28 Oct 2008
Posts: 25
Location: hyderabad

PostPosted: Tue Jan 11, 2011 12:35 pm    Post subject: JCL Abends Query
Reply with quote

Hello everyone

A JCL has 10 steps and none of the steps are given any kind of
Conditional checks ( COND , IF, END-IF , EVEN , ONLY etc..)

I have few doubts regarding this :

1 ==> Let's say if STEP 4 fails with MAXCC > 4 ( say 8 or 12)
will the remainng steps (5..10) execute?

2===> If the same Step 4 is abended with the S0C-7 or any System abends , in that case will the remaining steps Execute?
Back to top
View user's profile Send private message

lakshmikondur

New User


Joined: 05 Jan 2006
Posts: 9
Location: hyderabad

PostPosted: Tue Jan 11, 2011 1:14 pm    Post subject: Reply to: JCL Abends Query
Reply with quote

1. If none of the steps and job card is not having the condition checks the remaining steps will be executed.

2.If any of the step in job failed with system abends then sub sequent step will not be executed
Back to top
View user's profile Send private message
Amit Suri

New User


Joined: 28 Oct 2008
Posts: 25
Location: hyderabad

PostPosted: Tue Jan 11, 2011 1:37 pm    Post subject:
Reply with quote

Thanks for the prompt reply , just one more query
If COND = ONLY is coded for a step, how will step behave if

1==> previous step is failed ( i;e with the error of MAXCC 12 or above)

2==> Previous step is Abended with SYSTEM abends , viz S0C1 , S0C7 etc..
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Jan 11, 2011 2:45 pm    Post subject:
Reply with quote

Hi,

why not test your query, you will learn something as well as getting your answers.


Gerry
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jan 12, 2011 5:48 pm    Post subject: Reply to: JCL Abends Query
Reply with quote

Amit Suri wrote:
1 ==> Let's say if STEP 4 fails with MAXCC > 4 ( say 8 or 12) will the remainng steps (5..10) execute?

lakshmikondur wrote:
1. If none of the steps and job card is not having the condition checks the remaining steps will be executed.
Are you sure, lakshmikondur? Hint: He is talking about abend not the RC of step.

Amit - steps has Retrun-codes not MAXCC, so to start with your verbiage is not correct. However, if the step fails and you get an abend; and keeping in mind COND=ONLY is not coded anywhere in the Job - no other step will run (though without knowing what is executing in the step, it's a little pre-mature to answer. However, for the answer sake, I'll assume there is no COBOL program executing which moves some value to RETURN CODE special register, to quote just one possibility out of many.)
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 12, 2011 5:53 pm    Post subject:
Reply with quote

Can we get a couple of things straight here because the correct terminoloogy is critical in IT

As Anuj as so rightly said, the step will issue a RETURN CODE and not a MAXCC

From your title, JCL will never abend, only the program will do that.

Why are you asking these questions which can so easily be tested yourself.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 12, 2011 8:12 pm    Post subject:
Reply with quote

Hello,

And at the top of the page is a link to "IBM Manuals" among which is the JCL Language Reference. All of the information about COND is documented there.

If you find something that is not clear in the manual, post what you found and your doubt. Someone will be able to clarify.

Between the manual and running a few tests, you will be able to see all of this "for real".
Back to top
View user's profile Send private message
Amit Suri

New User


Joined: 28 Oct 2008
Posts: 25
Location: hyderabad

PostPosted: Thu Jan 13, 2011 4:28 pm    Post subject: Reply to: JCL Abends Query
Reply with quote

Regarding the system abends very recently i have tested my own by
taking 2 Sort steps causing one to abend deliberaltely ( by mentioning the
incorrect pgm name ) and coding the COND=ONLY in the next step

Job abended with a SYSTEM Abend S806 but the Step where i coded the COND=ONLY Paramter is executed :

And yes thanks for Advising me for Error: statement ( about Maxcc and RC)
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Jan 13, 2011 4:56 pm    Post subject: Re: Reply to: JCL Abends Query
Reply with quote

Amit Suri wrote:
Regarding the system abends very recently i have tested my own by
taking 2 Sort steps causing one to abend deliberaltely ( by mentioning the
incorrect pgm name ) and coding the COND=ONLY in the next step

Job abended with a SYSTEM Abend S806 but the Step where i coded the COND=ONLY Paramter is executed
System did exactly what you said it to do! But that sounds like a moot point in the 8th post of the thread.

Abend - abnormal end - caused by user or system, will through your Job out of processing queue. You could have some COBOL program executing in some step of your Job, having:
Code:
MOVE 1024 TO RETURN-CODE
this step will give you RC=1024 (RC>4 or 8 or 12 as you said in your original post) but this does not stop other steps of your JCL from execution because this is not an abend though it was greater than 4; you just set an RC as a user.
Back to top
View user's profile Send private message
Amit Suri

New User


Joined: 28 Oct 2008
Posts: 25
Location: hyderabad

PostPosted: Thu Jan 13, 2011 5:05 pm    Post subject:
Reply with quote

Hi Anuj

Thanks much for clarification , am prettly much clear with the issue
due to some firelwall issue i am out of MF connectivity and had the above SORT JCL executed thru some third person.

Once connectivity is restored will do as per advised and get back soon icon_smile.gif


Amit
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Jan 13, 2011 5:24 pm    Post subject:
Reply with quote

You're welcome and Good Luck...icon_smile.gif
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts SQL Query optimization. arunsoods DB2 12 Sun Sep 04, 2016 6:27 am
No new posts Query on BLSR Nileshkul JCL & VSAM 2 Sat Aug 13, 2016 5:18 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us