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
How does jcl specify the job to the operating system?
what are the statements that are not valid to be included in an include statement?
How to do automated restart when a job abend?
What is the significance of addrspc parameter in the exec statement?
which utility is used to sort a file in jcl?
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?
what is DD statement is used in JCL?
I need exexution process for JCL programs
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 ?
what is JCL?
Explain how can values be passed from the job stream to an executable program?
What statement can be used to send data to another mvs jes3 node?
Explain how can the submitting users racf authority be overridden in a job stream?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
Name the parameters which can be used to limit the number of records written to a sysout dataset?