Page 1 of 1

HELP With RC=04 in jcl

PostPosted: Fri Nov 26, 2010 12:34 am
by masterchecho
Hi all,
I have a problem with a RC in my jcl , to put you in context :

JCL X ==> PROC A
STEP 1 : Through "REPRO COUNT(1) VALIDATE if input file is empty or not

IF RC.STEP1= 0 (input file contains data)
STEP2
STEP3
ELSE (Empty file)
STEP 4
ENDIF.
end Proc.

then when i have an empty file , the proc returns an RC=04 , therefore the JCL ends with RC=04.

Now my question:
How can i handle the rc=04 , in order to my jcl ends with rc=00 eventhough i am processing an empty file.

Should i add an set maxcc o lastcc to the code ? Does it works for procs ?


Thanks in advance
Sergio

Re: HELP With RC=04 in jcl

PostPosted: Fri Nov 26, 2010 12:54 am
by NicC
You can set MAXCC in an IDCAMS step or you could run an IEFBR14 if the RC=0. Other options are available.

Re: HELP With RC=04 in jcl

PostPosted: Fri Nov 26, 2010 9:51 am
by dick scherrer
Hello,

One option that is not available is to reset a non-zero condition code back to zero. Once set it stays set. . .