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
what happens in execution stage in job processing?
How dummy is used in jcl?
When output dataset space is required, what quantity categories are used?
How to submit a jcl from cics?
How to run cobol program using jcl?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
How is a type of file defined in the jcl that executes the cobol program?
What is the function of the dd avgrec keyword in sms datasets?
Differentiate between addressing mode and run mode.
What is the function of dd name parameter with a 2 part structure; audit.report?
How does jcl specify the job to the operating system?
which parameter is used to check the syntax of a jcl without executing it?
Explain in DD statement what is the use of DCB parameter?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
what is DD statement is used in JCL?