In a JCL if previous steps return code is greater than 0 or
4 then the next step will not execute. But the job will be
successfull with the maximum return code. How can we reset
this maximum return code to '0' regardless of return codes
of any steps?
Answers were Sorted based on User's Feedback
Answer / mf guy
Maximum Return code can be set with the help of SET verb.
SET MAXCC=0 at the abending step.
Thanks.
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / balmukund
You can not setup the MAXCC= 0 in next step if previous
steps returned the RC>0. I means to day it is impossible to
setup the RC with less number than MAXCC returned by
previuos steps.
Better to setup the MXXCC = 0 in previous step.
If any one think its possible please specify the code.
| Is This Answer Correct ? | 6 Yes | 4 No |
Answer / anju
If RC.stepname > 4
set maxxcc=0
End-if
Correct me if wrong.
| Is This Answer Correct ? | 5 Yes | 17 No |
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
I have 5 generations in my GDG. How do I code in the JCL to consider all the 5 versions of the GDG ?
List the different components of jcl statement?
suppose i have job it contains 10 steps after exicution of job failuer at 3 and 7 th steps i want exicute step 3 and step 7 only how we specify condition ?
how many max steps can we use in a job? pls answer to my question
What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?
how to put a dependency on job in jcl using opc scheduler?
Is it possible to code instream data in a PROC?
Mention the types of job control statements?
How does jcl specify the job to the operating system?
Differentiate between the joblib and the steplib statements?
wht r different types of sorts ?