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 2 types of parameters in dd statement?
How to pass the parameter in parm using linkage section ? (syntax)?
what is use of dsn parameter in dd statement?
How can an in-stream dataset be terminated?
Are there any set of rules for the names of the steps used in a job?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
How to pass data to a program that is coded in an exec statement?
How can a jobs execution priority be modified?
In sms datasets, what is the function of the dd mgmtclas keyword?
What do you understand by the term notcat 2 – gs?
What is condition checking in jcl? Is this possible?
Is condition checking possible in jcl? If yes, how?
What are the jcl procedures?
Can I share my data with other jobs? How?