HELP With RC=04 in jcl
Posted: Fri Nov 26, 2010 12:34 am
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
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