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.....
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.....
hi i have a doubt
ReplyDeletestep1 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