Dear all

I would like to tune some IF THEN ELSE statements by changing operands 
positions of OR & AND statements in some of my COBOL II v3.4 programs.

Can we say that if always VAR1 assigned to VALUE1 the following statement 
(VAR1 EQUAL 'VALUE1') OR (VAR2 EQUAL 'VALUE2) 
has better performance than 
(VAR2 EQUAL 'VALUE2) OR (VAR1 EQUAL 'VALUE1') ?

In a similar way, can we say that if always VAR1 is not equal to VALUE1 the 
following statement 
(VAR2 EQUAL 'VALUE2) AND (VAR1 EQUAL 'VALUE1') 
has better performance than  
(VAR1 EQUAL 'VALUE1') AND (VAR2 EQUAL 'VALUE2)  ?

Kind regards
Kostas

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to