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
Let me clear you on what is cond and rstart:
Cond: say if you have coded a cond stmt for a step. If the
condition is met then it won't execute. If the condition is
false it will execute the step.
Restart: is used to restart the job from a particular step.
When you are restarting a job from step3 say. Then whatever
the cond parm on step3 it will ignore and it restarts from
step3.
Let me answer the points now.
1) //s3 exec pgm=abc,cond=(0,le)
<ANS> If you code cond=(0,le) then this condition will
check for all previous steps for cond code since 0 is
always less than or equal to return code from previous
steps it will bypass the step S3
2) //s3 exec pgm=abc,cond=(0,le,step2)
<ANS> Similar as answer 1, But here it will look only for
Return code from step step2 only. Even in this case it will
skip the step s3
3) In the jobcord RESTART=step3,cond=(0,le)
<ANS> This will run only step step3 in the job. Coding a
cond in job is like applying it to all steps..
4) can i code COND=TRUE in jobcard, if yes what will happen?
<ANS> We can code only cond as EVEN or ONly or in the
format as (condition,RO,Stepname)
where condition = 0 - 4096
RO = LE, LT, GT, GE, EQ, NE
stepname - step name of the job to look for return code.
Hope this makes sense. Do let me know if you need any
clarifications.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Explain how can the submitting users racf authority be overridden in a job stream?
What is the significance of addrspc parameter in the exec statement?
What is the function of job statement in jcl?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
Does jcl support automatic restart?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
How can a jobs execution priority be modified?
What is the use of disp parameter?
What is the purpose of disp parameter?
How to submit a jcl from cics?
What is timing concept in mainframe?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
what is DSN parameter and DISP parameter is used for?
Explain the function of dd name parameter with a 2 part structure; audit.report?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?