An SAS operator is a symbol that represents a comparison, arithmetic calculation, or logical operation. We will look into the various operator in the following sections.
SAS operators
Arithmetic operators
For performing arithmetic operations, the following can be used in SAS:
Symbol |
Definition |
+ |
Addition |
/ |
Division |
** |
Exponentiation |
* |
Multiplication |
- |
Subtraction |
Comparison operators
Comparison operators set up a comparison, operation, or calculation with two variables, constants, or expressions. If the comparison is true, the result...