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

whats the diff bw the evaluate also and and?

1946


Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?

2327


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2211


Brief description of inline procedure of jcl.

765


What is the function of dd name parameter with a 2 part structure; audit.report?

795






Name the statement which can be used to send data to another mvs jes3 node?

697


Explain about LMQUERY�give a dialog information about a data set

992


Differentiate between the joblib and the steplib statements?

952


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

951


Suppose I have five jobs to do. But I want to hold one?

750


Differentiate between addressing mode and run mode.

689


What parameter of the job statement is used to limit the cpu time consumed by the job?

933


How does jcl act on a cobol code?

731


What is catelog procedure and how many catelog procedure to use in one job?

7719


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2285