Suppose i have 2 steps in my pgm. Step1- creates a file,
Step2 - generates report from file in step1, What changes
have to be made in Step2, so that if the file in Step1 is
empty Step2 should not be executed? No changes to be made to
Step1.
Answer Posted / vinay sonar
If file is empty you will get return code 4.
So put always true confition COND=(4,EQ) in step2.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Explain the function of //jcllib statement?
what is SOC4 error?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
What is timing concept in mainframe?
What is the format of comment statement?
In sms datasets, what is the function of the dd avgrec keyword?
Explain the function of dd disp parameter?
What is the function of the dd avgrec keyword in sms datasets?
What do you understand by the term notcat 2 – gs?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
Matching Logic in Jcl not in cobol.Could any one please answer this question
Explain the function of the steplib dd 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?
which parameter is used to check the syntax of a jcl without executing it?
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?