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
Explain the function of the dd dcb keyword?
Explain how can return codes be tested before execution of a job step?
In sms datasets, what is the function of the dd mgmtclas keyword?
Does jcl support automatic restart?
How jcl work to handle various input output file operations?
What is jcl in mainframe?
Explain the purpose of the dd keylen parameter?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
Explain in DD statement what is the use of DCB parameter?
How to run cobol program using jcl?
How does jcl specify the job to the operating system?
What is the function of //jcllib statement?
How can a fb file convert to vb file using sort program?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file