When we use conditional statement in JCL using
if-then-else-endif, IF statement is true, the step is
bypassed or executed?
Answers were Sorted based on User's Feedback
Answer / shubha
statement is executed,but if we use cond=( ),
then if the statement is true step will be bypassed.
| Is This Answer Correct ? | 17 Yes | 2 No |
Answer / satyasivaji.ch
When we use conditional statements if the condition
specified is true then step bypassed,n if u use if n else
statements then condition specified is true then step is
executed.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / arjun
The step will b bypassed if the condition is true. This is
the feature of JCL which is against all other languages
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / praveen bejjanki
JCL has 2 statement which can check for the Return code of
the previous step.
1. Cond stmt: step will be executed when the condition is
falst
2. If stmt: step will be executed when the given condition
is true.
@All: Correct me if i'm wrong
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / nidhi sharma
IF STATEMENT IS TRUE STEP WILL BYPASS OTHERWISE IT WILL
EXECUTE.
| Is This Answer Correct ? | 4 Yes | 8 No |
what is use of dsn parameter in dd statement?
What is Backward Referencing ?
In one of intervie, my interviwer asked, I have a file which contains 4 records I would like to split the 4 different outputs for each record how to do?
14 Answers Cap Gemini, Cognizant, JPMorgan Chase, TCS, Xansa,
What is jcl in mainframe, and how many types of jcl statements are there for a job?
How can we increment subscript and index?
can we modify the code in copy book? if it possible how to submit ofter the modification.
what do you mean by include statement in jcl?
If a jcl has just 1 step and the input file to this does not exist, then what will happen if we submit this job?
How does -818 sql error occur? Why does it happen and what can be done to overcome this error code?
Why include statement is used in a jcl?
I have 10 steps, I want to run STEP1 TO STEP4 then I should not run STEP5 and STEP6. Aganin I want to execute from STEP7 to STEP10. ONLY using CONDITION CODES how can we execute this process? 1. Where we can set cond codes for STEP5 and STEP6? 2. How can we execute remaining steps from STEP7 to STEP10?
What is the purpose of the PARM keyword in the EXEC statement?