Multiple choice technology programming languages

STEP1 EXEC PGM=P1 STEP2 EXEC PGM=P2,COND=EVEN STEP3 EXEC PGM=P3,COND=((8,LE,STEP1),ONLY) If the condition code of the step1 is 4 and the step2 was abended then which statement is correct.

  1. step1, step2 and step3 will execute

  2. only step1 and step3 will execute

  3. only step1 and step2 will execute

  4. only step1 will execute

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Step 1 executes first. Step 2 has COND=EVEN, meaning it executes even if a previous step abended. Step 3 has COND=((8,LE,STEP1),ONLY). Since Step 1's return code is 4 (which is less than 8, so 8 is not <= 4), and ONLY specifies execution only if a prior step abended (which Step 2 did), Step 3 also executes.