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 / nishant singhal
Muttaiah you have explained very well but i have one doubt
here...
for these below 2 questiones
1) //s3 exec pgm=abc,cond=(0,le)
2) //s3 exec pgm=abc,cond=(0,le,step2)
cond=(0,le) should check return code from previous step ie
s2 because if you are not giving any step in your cond
parameter then by default it will check return code from
its previous step and it will work like same as mentioned
in question 2.
Please correct me if i am wrong and let me know how it will
look for all the previous steps ie s1 & s2.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
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.
How does jcl specify the job to the operating system?
Why block size is multiple of lrecl in jcl?
Explain how can a stopped job be started again?
List the different jcl statements that are not permitted in the procedures?
What are the parameter we cannot use in procedure?
Must tape dataset definitions include vol=ser specifications?
what operation is performed by job statement?
is there any way to execute more than one proc in the same exec statement at the same time..?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
How would you understand error(execution phase)?
How to run cobol program using jcl?
Explain the function of the steplib dd statement?