What is the use of cond parameter in JCL?
What is the use of cond parameter in JCL?
COND parameter is JCL can be used to skip a step based on the return code from the previous step or steps of the JCL. 2. This COND parameter can also be used to skip a step based on the return code from a previous step or steps in PROC.
How does JCL override condition code in proc?
COND= (RC, RO): COND= (RC, RO) is used to execute the step with COND parameter based on the condition code returned by previous step. If COND= (RC, RO) is true then the step with COND parameter execution will get bypassed. If COND= (RC, RO) is false then the step with COND parameter will get executed.
What would happen if cond parameter is present on both job and EXEC statement?
The COND parameter on both the JOB and EXEC statements is useful to set some conditions for all steps in the job and other conditions for particular steps. No COND parameters on JOB or EXEC statements means the system does not perform any return code tests, but tries to execute each step in the job.
How do you execute only even steps in JCL?
Resolution to run only even steps In JCL, you control steps execution by three methods. Those are COND, IF ELSE and RESTART parameters. The syntax for COND: COND=([(value,operator[,stepname])…]
How are Addrspc and region parameters used?
The system uses an EXEC statement ADDRSPC parameter only when no ADDRSPC parameter is on the JOB statement and only during the job step. Code a REGION parameter to specify how much central storage the job needs. If you omit the REGION parameter, the system uses the default.
What is Joblib and Steplib in JCL?
JOBLIB and STEPLIB in JCL both are used to specify the load libraries so that that the programs that are being used in that JCL/JOB are searched in these libraries. If it does not find it in there, then it searches in the SYSTEM LOAD LIBRARIES. So STEPLIB overrides the JOBLIB.
What is override parameter in JCL?
JCL/PROC override is useful when a proc parameters, data sets needs to be modified while executing it. Adding parameters, Nullifying the existing parameters or Overriding the parameters of a PROC are the common overrides that can be done via a JOB.
What is DCB parameter in JCL?
DCB. The Data Control Block (DCB) parameter details the physical characteristics of a dataset. This parameter is required for datasets that are newly created in the job step. LRECL is the length of each record held within the dataset. RECFM is the record format of the dataset.
What is Cond even in JCL?
COND=EVEN. When COND=EVEN is coded, the current job step is executed, even if any of the previous steps abnormally terminate. If any other RC condition is coded along with COND=EVEN, then the job step executes if none of the RC condition is true.
What is Addrspc parameter in JCL?
ADDRSPC parameter is used to indicate storage required by the system. The storage can be virtual (not real pagable) or central (real storage and nonpageable). ADDRSPC parameter is an optional parameter.
How is a COND parameter coded in JCL?
A COND parameter can be coded in the JOB or EXEC statement of JCL. It is a test on the return code of the preceding job steps. If the test is evaluated to be true, the current job step execution is bypassed. Bypassing is just omission of the job step and not an abnormal termination. There can be at most eight conditions combined in a single test.
When to use cond only in JCL exceptions?
– COND=ONLY is to tell the systems that to execute that step ONLY if any of the previous steps abnormally terminated. This is useful when there is any separate routine to log the error details
How is the execution of a step controlled in JCL?
A job step execution can be controlled based on the return code of the previous step (s) using the COND parameter and IF-THEN-ELSE construct, which has been explained in this tutorial. A COND parameter can be coded in the JOB or EXEC statement of JCL. It is a test on the return code of the preceding job steps.
How to test return codes with the COND parameter?
Use the COND parameter to test return codes from previous job steps and determine whether to bypass this job step. You can specify one or more tests on the COND parameter, and you can test return codes from particular job steps or from every job step that has completed processing.