There are two steps in a JCl, the first one generates a
report while the second step send an email saying the
report has been generated, but the second steps should only
be executed when the report file is non-empty. How can it
be acheived. We may include steps in between.
Answer Posted / squid
Just my thought -
You can set a code in your cobol program that writes the
report file to set a certain "return code" in the RETURN-
CODE field before exiting the program.
Depending on that return code from the program, you can
code IF END IF in your JCL.
Please let me know if that is wrong.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
What is condition checking in jcl? Is this possible?
What is Cataloged Procedures?
what is the difference between JES3 and JES2?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
How does jcl act on a cobol code?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
How is the record format of an output dataset specified?
What is concatenating?
Is it possible to define dd statements as you want?
What is the function of the dd mgmtclas keyword in sms datasets?
What happens if both JOBLIB & STEPLIB is specified ?