Overview In your DATA step programs, you'll probably want to use conditional logic to process some observations but not others. |
To execute a SAS statement for observations that meet specific conditions, you can use
To construct expressions in statements, you can use these comparison operators: |
Operator | Comparison Operation | |
---|---|---|
= |
eq |
equal to |
^= |
ne |
not equal to |
> |
gt |
greater than |
< |
lt |
less than |
>= |
ge |
greater than or equal to |
<= |
le |
less than or equal to |
in |
equal to one of a list |
You can also use these logical operators: |
Operator | Logical Operation |
---|---|
& |
and |
| |
or |
^ or
~ |
not |