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
whats the diff bw the evaluate also and and?
What is the syntax of JCL statement?
What are s0c1, s0c4, s0c5, s0c7 and socb?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
what happens in conversion stage in job processing?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
what are the types of abends that occur on job failure? And explain the possible causes of these
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
List the various advantages of using jcl language?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
i want to store 20 digits . how will u do it in cobol ?
what operation is performed by job statement?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Describe the various parameters utilized in the creation of a gdg?
Is condition checking possible in jcl? If yes, how?