What is a Conditional Statement in JCL?
//STEP1 EXEC PGM=IGYCRCTL //* Compile the program
//STEP2 EXEC PGM=TESTPROG //* Run tests
//IF (STEP1.RC = 0 AND STEP2.RC = 0) THEN
//STEP3 EXEC PGM=COPYOUT //* Copy output
//ELSE
//STEP4 EXEC PGM=PRTERRPT //* Print error report if failed
//ENDIF PreviousUnderstanding Instream Procedures, Cataloged Procedures, and Symbolic Parameters in JCLNextJCL Conditional Parameter Types
Last updated
Was this helpful?