InterviewSolution
| 1. |
What do you mean by Condition checking in JCL? |
|
Answer» Yes, condition CHECKING is possible in JCL, both at the job level and at the STEP level. Obviously, this is done using the COND keyword along with a return code and operand that are DEFINED in JCL. The concept of conditional checking is similar to the concept of (if else) in many programming languages (such as C, C++, Java, ETC.). Syntax: COND=(RC,OP) COND=(RC,OP,STEPNAME) COND=EVEN COND=ONLYHere, RC stands for Return code, OP for Operator, and STEPNAME for Step name. RC can be assigned any value from 0 to 4095, but in most cases, it will be assigned a value from 0 to 16 as follows: 0 (Successful execution of a program i.e., Normal execution). 4 (Successful execution of a program with some warning). 8 (Error) 12 (Severe Error) 16 (Fatal Error) ‘OP’ can be any one of the following: EQ (Equal to) NE (Not Equal to) LT (Less than) LE (Less than or Equal to) GT (Greater than) GE (Greater than or Equal to) |
|