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

what's the significance of freespace(0 0) and freespace(100 100)

3 Answers  


Explain about User Information

1 Answers  


How do you send the output of a COBOL program to a member of a PDS?

7 Answers  


what is the function of iebcompr?....is it compare record length or characteristics of a dataset?...pls explain with examples.......

2 Answers  


How do you pass parameters to the program as the job is being executed ?

2 Answers  


which statement is used to end the in-stream procedure in a jcl?

1 Answers   IBM,


What is S322 abend ?

5 Answers  


What are the default system and catalog libraries in JCL?

2 Answers   Infosys,


Is it possible to take a PDS and write it to a GDG? If so, can you provide an example? Thanx

7 Answers  


Must tape dataset definitions include vol=ser specifications?

0 Answers  


what do you mean By spooling? Expand SPOOL?

4 Answers  


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

0 Answers  


Categories