In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the last step should then be executed (send a message to an user). Due to we don't like to change all our JOB's (ca. 2000), we are looking for a simply solution.
Answer Posted / anudeep
Hi ,
You can use the keyword COND=ONLY at the last.
This step will execute only if the job fails at any step.
Thanks,
Anudeep
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
what is the purpose of coding class parameter in job statement?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
How to submit jcl through a cobol program?
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?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
What is Cataloged Procedures?
What do you understand by the term notcat 2 – gs?
how would you create a temporary dataset? And where will you use them?
What is the format of comment statement?
What do you know about jcl?
What is the difference between run mode and addressing mode?
Is condition checking possible in jcl? If yes, how?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
how can you check if a file is empty using jcl?