Can we override IF statement in a PROC.

JES2/3, JCL, utilities.
Post Reply
Jyoti Chibber
Registered Member
Posts: 16
Joined: Wed Aug 20, 2014 5:40 pm

Can we override IF statement in a PROC.

Post 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.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Can we override IF statement in a PROC.

Post by zprogrammer »

zprogrammer
User avatar
Angel
Registered Member
Posts: 95
Joined: Sat Jun 08, 2013 8:13 pm
India

Re: Can we override IF statement in a PROC.

Post 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...
Jyoti Chibber
Registered Member
Posts: 16
Joined: Wed Aug 20, 2014 5:40 pm

Re: Can we override IF statement in a PROC.

Post by Jyoti Chibber »

So I can not override the step with IF statement?
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Can we override IF statement in a PROC.

Post by zprogrammer »

It is not possible to achieve that with the current IF statement.

Did you check the link which I have provided?
zprogrammer
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”