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
how you can access an uncataloged dataset in a JCL?
what is the resolution for sb37 error
When output dataset space is required, what quantity categories are used?
how to compare two datasets without using superce because output is limited to 133 bytes
Is condition checking possible in jcl? If yes, how?
What is the use of symbol // in jcl?
What is the function of the steplib dd statement?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
What happens if both JOBLIB & STEPLIB is specified ?
what is the compile process of cobol program expalin with code
What is the use of disp parameter?
Explain how can a jobs execution priority be modified?
Explain about LMFREE�free data set from its association with data ID
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
How to execute 2nd and 4th steps among 5 steps in jcl proc?