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 can unused space allocation be returned to the system when a dataset is closed?

0 Answers  


What are steplib and joblib? What for they are used?

0 Answers  


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

3 Answers   Wipro,


How to execute a set of JCL statements from a COBOL program ?

6 Answers  


What dd statement is used to supply the name of a dataset?

0 Answers  






Can a PROC CALL another PROC ? (in both Instream and Cataloged cases) ?

3 Answers   IBM,


I've one sequential file, That file contains millians of Junk & CHAR recoreds example File 1 ,,,,,...,,,.....,.,.INFOSYS.....,,,,,,,,,,,WIPRO..........., ,...,..,. My questions is : I want omit the 44th posstion to 4 CHAR (WIPRO) remaining things I want output file (including Junk CHAR also)... How can we slove this problem & give me a syntax. Please provide the result as soon as possible.

5 Answers   CTS,


define cond parameter in jcl?

0 Answers   IBM,


How jcl is used for testing batch programs?

0 Answers  


If a JOBSTEP abends, AND without using COND also, all the subsequent steps execute, then what is the use of using EVEN ? Why do we use EVEN when without it also all the JOBSTEPs execute ?

2 Answers   IBM,


Write a jcl to execute a job by 7 a.m on Jan 20,1986 ?

5 Answers   Maples, Patni, TCS,


Does jcl support automatic restart?

0 Answers  


Categories