Multiple choice technology mainframe

Which of the following concerning the COND parameter are true on EXEC statement level?

  1. The COND parameter always indicates that if its condition is met, the step is NOT executed.

  2. When adding the COND parameter to an EXEC statement that calls a procedure, this COND

  3. With the COND parameter, we can only check return codes.

  4. The COND parameter can check the return codes of multiple steps, but as soon as one of

Reveal answer Fill a bubble to check yourself
B,D Correct answer
Explanation

When COND is placed on an EXEC that calls a procedure, it applies to ALL steps in that procedure (B is true). COND can check multiple previous steps' return codes using EVEN/ONLY syntax, and stops at the first true condition (D is true). Option A is false because COND tests whether to SKIP the step. Option C is false because COND can also test abend conditions (abend codes), not just return codes.