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
Brief description of inline procedure of jcl.
Must tape dataset definitions include vol=ser specifications?
What is the difference between the positional and keyword parameters? Give examples.
What do you understand by the term job time – out and how can you overcome that?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
How can return codes be tested before execution of a job step?
What is jcl in mainframe?
How to submit jcl through a cobol program?
For what purpose steplib and joblib are used ?
What are steplib and joblib? What for they are used?
What is job control language?
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
Is it possible to left uncode disp? If yes, how?
Can I share my data with other jobs? How?
Explain the function of dd name parameter with a 2 part structure; audit.report?