And how are you planning to deploy proc in production ? Either one needs to be changed and the correct place is JCL. You don’t need that IF conditions at all and update the max rc in scheduling to 4 for this job and you are done.
I tried giving -
IF STEP010.RC=04 THEN
but that did not help. I tried MAXCC / LASTCC / STEP.RC but none of that worked.
With this level of understanding of JCL concepts you are welcome to the Beginners Forum!
The quoted code is (highly likely?) a mixture of keywords used in JCL, and completely different keywords used inside of system utility IDCAMS; both given with syntax errors. Is seems to be impossible at the Expert Forum to have no idea about the difference between them.