Posted: Wed Apr 26, 2006 9:05 am Post subject: CONDITION CODING WITH "OR" WITHOUT IF/THEN/ELSE
Here is my problem. My installation does not allow the use of the "IF/THEN/ELSE" for condition code checking.
I need to find out how to condition code an EXEC statement that will execute IF ANY of the preceeding steps gets a RC GE 8 and not to execute if all of the preceeding steps get a RC EQ 0.
Is there a way to do this with the COND parameter?
I can do it quite easily with the IF/THEN/ELSE but I cannot get it to work with the COND.
Can you post an example of what you've tried so far?
Code:
//STEP04 EXEC PGM=IEFBR14,
// COND=((0,EQ,STEP01),(0,EQ,STEP02),(0,EQ,STEP03))
THIS WORKS IF ALL ARE 0 BUT IF ANY ARE 8, THIS STEP IS BYPASSED AND I NEED IT TO EXECUTE
//STEP04 EXEC PGM=IEFBR14,
// COND=((8,NE,STEP01),(8,NE,STEP02),(8,NE,STEP03))
SAME RESULTS AS MY FIRST TEST
I have tried several other combinations but have since deleted the results.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum