View previous topic :: :: View next topic

Author 
Message 
sivakumarsalem Warnings : 1 New User
Joined: 21 Dec 2005 Posts: 3




Add AB TO C
EVALUATE C=A+B
WHAT IS THE DIFFERENCE
Edited: Do not use Forum name as your Topic Title 

Back to top 




umeshkmrsh
New User
Joined: 21 Sep 2005 Posts: 79 Location: India




no difference.
The statements should be:
ADD A, B TO C
COMPUTE C = A + B
COMPUTE is generally used for complex statements. 

Back to top 


ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2360 Location: Israel




This is from the manual:
Quote: 
With the COMPUTE statement, arithmetic operations can be combined without the restrictions on receiving data items imposed by the rules for the ADD, SUBTRACT, MULTIPLY, and DIVIDE statements.
When arithmetic operations are combined, the COMPUTE statement can be more efficient than the separate arithmetic statements written in a series. 
O. 

Back to top 


