This above compare step returns MAXCC 8 when there is a mismatch between the files. I need to change the MAXCC of the job to something less than 8. I tried IDCAMS in the next step to change the MAXCC or LASTCC to 1, still the job gives a MAXCC 8.
I even tried changing MAXCC in the SYSIN of IEBCOMPR, did not work.
I need the MAXCC of the job to be '1'. Any assistance on this would help. Thanks.
The job completion code is set to the highest return code of any step in the job,
or if the completion of the job fails because of an ABEND, the job completion
code is set to the last ABEND code. This is the default.
The job completion code is set to the return code or ABEND code of the last
step that is executed in the job.
The job completion code is set to the return code or ABEND code of the step
that is indicated by the stepname.[.procstepname] parameter. If there are
duplicate stepnames, than the last matching step is used. If this step does not
exist, a JCL error is generated. If this step does not execute, the processing is
the same as if MAXRC is specified. .
You may also need to add another step to your Job. This may be a dummy step (using IEFBR14) for which the return code is 0. And then in JOBRC, you need to point to this step and the Job will give a return code of 0.