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



In a JCL if previous steps return code is greater than 0 or 4 then the next step will not execute...

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

In a JCL if previous steps return code is greater than 0 or 4 then the next step will not execute...

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

In a JCL if previous steps return code is greater than 0 or 4 then the next step will not execute...

Answer / srk

can u specify the code for above problem

Is This Answer Correct ?    1 Yes 0 No

In a JCL if previous steps return code is greater than 0 or 4 then the next step will not execute...

Answer / anju

If RC.stepname > 4
set maxxcc=0
End-if

Correct me if wrong.

Is This Answer Correct ?    5 Yes 17 No

Post New Answer

More JCL Interview Questions

how do you code a null statement?

0 Answers   IBM,


How do you restart a step in JCL?

12 Answers   HSBC,


I need exexution process for JCL programs

0 Answers  


How can return codes be tested before execution of a job step?

0 Answers  


In my JCL 10 Steps Will Be there Now i want to execute step05 And step06. How to Give the Cond?

2 Answers   IBM,






What does a disposition of (NEW,CATLG,DELETE) mean?

3 Answers  


I have 10 steps, I want to run STEP1 TO STEP4 then I should not run STEP5 and STEP6. Aganin I want to execute from STEP7 to STEP10. ONLY using CONDITION CODES how can we execute this process? 1. Where we can set cond codes for STEP5 and STEP6? 2. How can we execute remaining steps from STEP7 to STEP10?

2 Answers  


Describe the various parameters utilized in the creation of a gdg?

0 Answers  


There are two steps in a JCl, the first one generates a report while the second step send an email saying the report has been generated, but the second steps should only be executed when the report file is non-empty. How can it be acheived. We may include steps in between.

3 Answers   IBM,


How can we increment subscript and index?

1 Answers   CTS, IBM,


What is the difference b/w the CLASS,TIME,PRTY in jcl job card.

4 Answers   Syntel,


1) Is CLASS used for assigning Priority (as we say a job having class '6' will run before the job having class '5'? then what is the difference between CLASS and PRTY ? 2) In a same JCL, 2 JOB statements with different Classes and NO PRTY are submitted ? which will run first ? & with different classes and different PRTY also, which will run first now ?

3 Answers   IBM,


Categories