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


Please Help Members By Posting Answers For Below Questions

What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

675


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

706


how can you check if a file is empty using jcl?

812


how do you code a null statement?

775


What is Cataloged Procedures?

711






Matching Logic in Jcl not in cobol.Could any one please answer this question

3669


which utility is used to run a cobol-db2 program?

805


Is acct parameter mandatory?

759


Is condition checking possible in jcl?

716


Explain the function of the steplib dd statement?

641


Explain how can an in-stream dataset be terminated?

697


Explain the purpose of dd * statement in jcl?

636


How can the disposition of sysout datasets be set for an entire jobstream?

835


What parameters can be used to limit the number of records written to a sysout dataset?

746


In job processing, what happens in execution stage?

696