September 2019
Beginner to intermediate
346 pages
7h 35m
English
Comparison operators set up a comparison, operation, or calculation with two variables, constants, or expressions. If the comparison is true, the result is 1. If the comparison is false, the result is 0. The following table show the symbol, mnemonic equivalent, and definition of each comparison operators in SAS:
|
Symbol |
Mnemonic equivalent |
Definition |
|
= |
EQ |
Equal to |
|
^= (or ¬=, ~=) |
NE |
Not equal to |
|
> |
GT |
Greater than |
|
< |
LT |
Less than |
|
>= |
GE |
Greater than or equal |
|
<= |
LE |
Less than or equal |
|
|
IN |
Equal to one of a list |
Read now
Unlock full access