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
define cond parameter in jcl?
How can an in-stream dataset be terminated?
What is use of restart and how to use it?
List the different jcl statements that are not permitted in the procedures?
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
in ways data can be passed to a COBOL program from JCL?
Why include statement is used in a jcl?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
Explain how can an in-stream dataset be terminated?
Explain the function of //cntl statement?
What is the function of dd name parameter with a 2 part structure; audit.report?
What is the use of disp parameter?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
Is their any set of rules for dd? Explain.
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?