Page 1 of 1

Can we override IF statement in a PROC.

Posted: Thu Dec 11, 2014 2:50 pm
by Jyoti Chibber
Hi

Is it possible to overide IF condition in a PRC.

For example see this,

Code: Select all

//CHK IF ((STEP060.RC = 0 OR STEP060.RC = 0011) ) THEN                        
//STEP100     EXEC PGM=IEBGENER 
//SYSUT1  DD DSN=ABC.EFG.DAILY(+1),DISP=SHR                      
//SYSUT2   DD DSN=ABC.EFG.RECORDS,DISP=MOD 
I need this step to be executed irrespective of condition codes.I hope that Cond.STEP100='condition code' will not override the if condition if the step is restarted from STEP100.

Please guide me.

Re: Can we override IF statement in a PROC.

Posted: Thu Dec 11, 2014 8:33 pm
by zprogrammer

Re: Can we override IF statement in a PROC.

Posted: Fri Dec 12, 2014 12:38 pm
by Angel
You can not override the IF statement in PROCs. I think this is not changed even in latest release of zOS 2.1...

Re: Can we override IF statement in a PROC.

Posted: Tue Dec 16, 2014 3:07 pm
by Jyoti Chibber
So I can not override the step with IF statement?

Re: Can we override IF statement in a PROC.

Posted: Tue Dec 16, 2014 4:05 pm
by zprogrammer
It is not possible to achieve that with the current IF statement.

Did you check the link which I have provided?