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
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
What is the function of //cntl statement?
How is the record format of an output dataset specified?
How is a type of file defined in the jcl that executes the cobol program?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
what are JCLLIB and STEPLIB in JCL?
what is the compile process of cobol program expalin with code
Explain the purpose of dd * statement in jcl?
What happens if both JOBLIB & STEPLIB is specified ?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
What is the function of dd name parameter with a 2 part structure; audit.report?
What is the function of the dd dcb keyword?
Is it possible to left uncode disp?
Describe the various parameters utilized in the creation of a gdg?