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,

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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' ?

1579


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

1964


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

779


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1728


In job processing, what happens in execution stage?

696






which utility is used to sort a file in jcl?

745


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

811


is there any way to execute more than one proc in the same exec statement at the same time..?

2107


Explain dfsort utility?

667


What are the difference between jcl and jes?

1048


How does jcl act on a cobol code?

656


What is jcl in mainframe?

688


what are JCLLIB and STEPLIB in JCL?

672


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

3669


how do you code a null statement?

775