SAS – Comparison Operators

Trending In SAS

Comparison Operators
Symbol Mnemonic Equivalent Definition Example
= EQ equal to
a=3
^= NE not equal to (table note 1)
a ne 3
¬= NE not equal to
~= NE not equal to
> GT greater than
num>5
< LT less than
num<8
>= GE greater than or equal to (table note 2)
sales>=300
<= LE less than or equal to (table note 3)
sales<=100
IN equal to one of a list
num in (3, 4, 5)

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts