What is the improvement to COND= in the latest version of MVS?

MVS now allows for an IF bracketed by an END IF around any job step to replace the COND= syntax. Again, if the IF statement is true, the step is bypassed.

Showing Answers 1 - 5 of 5 Answers

Anuja Tiwari

  • Apr 4th, 2006
 

If you use 'IF and END IF', step will get executed when IF is satisfied. In case of COND parameter, step is bypassed when

  Was this answer useful?  Yes

Anil Kumar Guggilam

  • May 27th, 2006
 

could you please give me the syntax... thanks

  Was this answer useful?  Yes

Guest

  • Jan 22nd, 2007
 

if it's true you fall thru (IBM wonked this up):

//*--------------------------------------------------------------------
//*     TERMINATE IF BAD CC FROM STEP10                      
//*--------------------------------------------------------------------
//*                                                                   
//STEP11  EXEC  PGM=A,                                          
//             COND=(0,EQ,PS010),                                     
//             REGION=64K,                                            
//             PARM=('ABEND: NON-ZERO CC STEP10 - VERIFY FILES') 
//*                                                                   
//SYSUDUMP DD  SYSOUT=*                                               
//SYSOUT   DD  SYSOUT=*                                               
//*                                                                   

But new MVS says do the step IF true (IBM un-wonked their error):

//  IF STEP10.RC NE 0
//  THEN                        
//STEP20    EXEC PGM=AAB,    
//SYSOUT   DD SYSOUT=*    
//SYSPRINT DD SYSOUT=*    
//SYSCOUNT DD SYSOUT=*    
//SYSDBOUT DD SYSOUT=*    
//SYSUDUMP DD DUMMY             
//SYSABEND DD DUMMY             
//SYSABOUT DD DUMMY             
//  ENDIF                       

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions