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 |
IN DFSORT sum fields=none is usec to remove duplicates.how to write the duplicates in another dataset?
in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?
Explain how can the submitting users racf authority be overridden in a job stream?
Explain the job statement in jcl?
what are JCLLIB and STEPLIB in JCL?
What is the significance of addrspc parameter in the exec statement?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
How does jcl act on code(if you take a cobol program)?
Are there any set of rules for the names of the steps used in a job? What are they?
How to find the number of duplicates in a file using Sort?
Is condition checking possible in jcl? If yes, how?
What is the function of //cntl statement?