Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the las..

Answer / himap

This is from JCL User guide....
Step Execution after a Preceding Step Abnormally Terminates
Abnormal termination of a step usually causes the system to bypass subsequent
steps and to terminate the job. However, the EXEC statement COND parameter
lets you request execution of a step by coding:
//stepname EXEC PGM=x,COND=EVEN
The step is to be executed even if one or more of the preceding steps
abnormally terminates. That is, the step will always be executed, whether or not
a preceding step abnormally terminates.
//stepname EXEC PGM=x,COND=ONLY
The step is to be executed only if one or more of the preceding steps
abnormally terminates. That is, the step will not be executed, unless a
preceding step abnormally terminates.
If a step abnormally terminates, the system scans the EXEC COND parameter for
the next step for an EVEN or ONLY subparameter. If neither is present, the system
bypasses the step. If EVEN or ONLY is specified, the system makes any requested
return code tests against the return codes from previous steps that executed and
Chapter 10. Processing Jobs - Processing Control 10-7
Processing Jobs - Processing Control
did not abnormally terminate. The step is bypassed if any test is satisfied.
Otherwise, the step is executed.
Note: Certain error conditions prevent the system from executing a step,
regardless of any requests specified through the COND parameter. Other
considerations are also related to the use of the COND parameter. For
information on cautions when specifying COND parameters, see the
description of the COND parameter on the EXEC statement in OS/390 MVS
JCL Reference.

Hope this answers your question.

Is This Answer Correct ?    2 Yes 0 No

In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the las..

Answer / anudeep

Hi,

Please used COND=ONLY in your last step which has to be executed whenever the jobs fails.
Thanks.

Is This Answer Correct ?    0 Yes 1 No

In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the las..

Answer / herm ballast

The COND in the JOB Statement overwrites all the COND in the STEP Statement, so it does work.

Is This Answer Correct ?    0 Yes 1 No

In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the las..

Answer / 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

More JCL Interview Questions

IF WE GIVE COND on step3 then, What does the following mean ? And Just adding to that, All the below COND are VALID as per the specifications. (i) COND = (8,LT,step1,step2) ---(AND/OR ?) (ii) COND = (8,LT,step1,step2, ONLY), (iii) COND = (8,LT,step1,ONLY) will it execute only if this condition is true or only if step1 ABENDS ? (iv) COND = (8,LT,step1,step2,EVEN), (v) COND = (8,LT,step1,EVEN) ?

2 Answers   IBM,


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

0 Answers  


What does a disposition of (NEW,CATLG,DELETE) mean?

3 Answers  


shall we concordinate two different length dataset in to a new date set.

6 Answers  


What is the purpose of dd dummy statement?

0 Answers  


in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?

3 Answers   Patni,


i just need the first and last record from a sequencial file?how

2 Answers  


A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

0 Answers   IBM,


Passing a variable parm from JCL to a cobol/db2 program

1 Answers   IBM,


How to execute only th 15th step of JCL consisting of 50 steps?

12 Answers   Bank Of America,


How to send data from cobol program to jcl?

2 Answers   CSC,


Explain about LMCOPY -

1 Answers  


Categories