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 are the types of abends that occur on job failure? And explain the possible causes of these
Explain the function of the steplib dd statement?
What are some jcl statements that are not allowed in procedures?
What is the purpose of dd?
Is it possible to define dd statements as you want?
What are hierarchy levels in jcl?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
what sort card you will use to copy the data from one dataset to another dataset?
What happens if both JOBLIB & STEPLIB is specified ?
What is the purpose of disp parameter?
how do you code a null statement?
Explain how can an in-stream dataset be terminated?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What parameter directs the output of the job log dataset?
Matching Logic in Jcl not in cobol.Could any one please answer this question