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
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
What is the function of dd disp parameter?
Is there any command to check wether the ps file is in sorted order?
Where can program checkpoints be stored for use in a restart?
How dummy is used in jcl?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
How can an in-stream dataset be terminated?
when does a dataset go uncataloged?
What is catelog procedure and how many catelog procedure to use in one job?
How to alter the parameters for the existing gdg?
Are there any set of rules for the names of the steps used in a job?
Can I send output of job to my remote device careerride123?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Explain about ISPF/TSO Commands