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


Please Help Members By Posting Answers For Below Questions

how you can access an uncataloged dataset in a JCL?

642


what is the resolution for sb37 error

7678


When output dataset space is required, what quantity categories are used?

811


how to compare two datasets without using superce because output is limited to 133 bytes

1471


Is condition checking possible in jcl? If yes, how?

722






What is the use of symbol // in jcl?

911


What is the function of the steplib dd statement?

727


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?

605


What happens if both JOBLIB & STEPLIB is specified ?

597


what is the compile process of cobol program expalin with code

1991


What is the use of disp parameter?

641


Explain how can a jobs execution priority be modified?

727


Explain about LMFREE�free data set from its association with data ID

985


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

734


How to execute 2nd and 4th steps among 5 steps in jcl proc?

740