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
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
Explain the function of the steplib dd statement?
Mention the types of job control statements?
How can the attributes of one sms dataset be copied to another dataset?
Differentiate between addressing mode and run mode.
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
Describe the various parameters utilized in the creation of a gdg?
I need exexution process for JCL programs
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
Are there any set of rules for the names of the steps used in a job?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
What are the difference between jcl and jes?
What do you know about jcl?
what happens in conversion stage in job processing?