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

can we bowse or edit the GDG dataset if it is a tape entry?

4 Answers  


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

0 Answers  


describe the exec statement,its meaning ,syntax and keywords?

3 Answers  


i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?

1 Answers   IBM,


I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.and it should not execute 18,19,20 steps??

9 Answers   IBM, Infosys, TCS, Xansa, Xchanging,






what is the COND=EVEN ? Can anyone give me an example to explain the usage.

2 Answers  


Using DELETE what type of file can you delete? a)SEQUENTIAL FILE B)INDEXED FILE C) D) Some options were there..i cant remember

3 Answers   HSBC,


What are hierarchy levels in jcl?

0 Answers  


Is there GOTO and SWITCH-CASE available in JCL ? Is IF-THEN-ELSE available in JCL also just like it is available for VSAM datasets under Model Commands category ?

1 Answers   IBM,


SORT card to eliminate duplicity.

1 Answers   Syntel,


Is it possible to code instream data in a PROC?

0 Answers  


Can I copy the FB (fixed Block) record length file to a VB (variable Block)record length file and Vise Versa? If Yes then how ? is that thru one of the JCL utility ?

3 Answers  


Categories