View previous topic :: View next topic
|
Author |
Message |
Amit Suri
New User
Joined: 28 Oct 2008 Posts: 25 Location: hyderabad
|
|
|
|
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 |
|
|
lakshmikondur
New User
Joined: 05 Jan 2006 Posts: 9 Location: hyderabad
|
|
|
|
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 |
|
|
Amit Suri
New User
Joined: 28 Oct 2008 Posts: 25 Location: hyderabad
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
why not test your query, you will learn something as well as getting your answers.
Gerry |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Amit Suri
New User
Joined: 28 Oct 2008 Posts: 25 Location: hyderabad
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Amit Suri
New User
Joined: 28 Oct 2008 Posts: 25 Location: hyderabad
|
|
|
|
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
Amit |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
You're welcome and Good Luck... |
|
Back to top |
|
|
|