Wednesday, 15 May 2013

Explanation for COND=ONLY and COND=EVEN in JCL....

COND=ONLY
if you mentioned this option in a step, that particular step will execute ONLY when there is an ABEND.   (
IF YOU MENTIONED THIS OPTION IN A STEP,THAT
PARTICULAR STEP WILL EXECUTE ONLY WHEN THE PRIOR STEP GETS ABENDED.
)
 

COND=EVEN
this particular step will execute either ABEND or not.
  (MEANS IF THE PREVIOUS STEP EXECUTED SUCCESSFULLY  OR NOT THAT PARTICULAR STEP WILL GET EXECUTED SUCCESSFULLY. )

 Syntax:

//----- JOB CARD------
//STEP1 EXEC PGM=TEST1
//
//
//STEP2 EXEC PGM=TEST2,COND=ONLY
//
//

In the above program uses COND=ONLY here the STEP2 executes only if the STEP1 gets abend.....

//------- JOB CARD ------
//STEP1 EXEC PGM=TEST1
//
//
STEP2 EXEC PGM=TEST2,COND=EVEN
//
//

In the above program uses COND=EVEN here the STEP2 executes even if the STEP1 gets abend or successful.....

1 comment:

  1. hi i have a doubt
    step1 contains cond=only and step2 also contains con=only it is possible if it is what the answer it is and max how many time we are using cond=only in one job is there any restriction might be i here it is declared only once

    ReplyDelete

Expense Handler Application with advance technologies

Budget Planner  One of the application developed with Ionic 4 and Python-Flask.  Ionic 4 code:  https://github.com/logeshbuiltin/Expense...