You have a JCL job with multiple steps. The third step should execute only if both the first and second steps execute successfully. How would you define this in JCL?
- COND parameter on STEP3 specifying (0,EQ,STEP1) and (0,EQ,STEP2)
- COND parameter on STEP3 specifying (0,GT,STEP1) and (0,GT,STEP2)
- COND parameter on STEP3 specifying (0,LT,STEP1) and (0,LT,STEP2)
- COND parameter on STEP3 specifying (0,NE,STEP1) and (0,NE,STEP2)
The COND parameter on STEP3 is set to execute only if both STEP1 and STEP2 complete with a return code of 0, indicating successful execution. This ensures the third step runs only when both preceding steps are successful.
Loading...
Related Quiz
- The REGION parameter in a JOB statement specifies the _______ that the job is allowed to use during execution.
- What is the difference between the IF and COND parameters in JCL?
- How can you ensure that a specific JCL step is executed only if a previous step fails?
- The ____ statement defines the layout of the output records in a SORT step of the JCL SORT utility.
- You need to ensure that job-related messages are sent to a specific user when a job completes. How would you configure this in the JOB statement?