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

JCL Abends Query


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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: 1702
Location: Australia

PostPosted: Tue Jan 11, 2011 2:45 pm
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

Superior Member


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

PostPosted: Wed Jan 12, 2011 5:48 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Jan 12, 2011 5:53 pm
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

Moderator Emeritus


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

PostPosted: Wed Jan 12, 2011 8:12 pm
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
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

Superior Member


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

PostPosted: Thu Jan 13, 2011 4:56 pm
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
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

Superior Member


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

PostPosted: Thu Jan 13, 2011 5:24 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Batch call online program, EXCI task ... CICS 3
Search our Forums:

Back to Top