Hi, all
suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if
cond is true or false (which of the other steps get executed)?
1) //s3 exec pgm=abc,cond=(0,le)
2) //s3 exec pgm=abc,cond=(0,le,step2)
3) In the jobcord RESTART=step3,cond=(0,le)
4) can i code COND=TRUE in jobcard, if yes what will happen?
Answer Posted / muttaiah
Nishant,
let me tell you the diff b/w these 2 cond stmts
cond=(RC,RO,stepname) & cond=(RC,RO)
Say when we code the stepname, It will look for the Return
code from that step alone.
Say if i ignore the stepname sub parm, Then what are all
the steps executed before this all those return codes are
checked with the condition specified.
1) //s3 exec pgm=abc,cond=(0,le)
In this question, since they didn't mention the number
of steps coded before s3, s3 looks for what are all the
steps run before this and compares all steps return code
with the cond if the condition is true it will bypass else
it will execute.
2) //s3 exec pgm=abc,cond=(0,le,step2)
Here they have mentioned clearly to the JCL, like look
for only return code from step2..
Hope this clears your doubt. If you have any other doubt.
Please mail me @ mainframe.technology@gmail.com
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Is acct parameter mandatory?
Give the syntax of job specifying jcl statement.
Is condition checking possible in jcl? If yes, how?
Is it possible to code instream data in a PROC?
Why block size is multiple of lrecl in jcl?
What are the jcl procedures?
Brief description of inline procedure of jcl.
What is the syntax of JCL statement?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
How is the record format of an output dataset specified?
What are the rules employed while naming the steps in a job?
What does a disposition of (MOD,DELETE,DELETE) mean ?
how do you access an uncataloged dataset in a jcl?
How can the attributes of one sms dataset be copied to another dataset?