SAS P1 L4b Flashcards
“Equal to” symbol?
Mnemonic?
=
EQ eq
“Not equal to” symbol?
Mnemonic?
^=
~=
NE ne
“Greater than” symbol?
Mnemonic?
>
GT gt
“Less than” symbol?
Mnemonic?
<
LT lt
“Greater than or equal to” symbol?
Mnemonic?
>=
GE ge
“Less than or equal to” symbol?
Mnemonic?
<=
LT lt
“Equal to one of list” symbol?
Mnemonic?
IN in
Which need to use - symbol or mnemonic?
can use either symbol or mnemonic
Not equal to ?
^=
~=
NE ne
Greater than ?
>
GT gt
Less than ?
<
LT lt
Greater than or equal to ?
>=
GE ge
Less than or equal to ?
<=
LT lt
Equal to one of list?
IN in
Which need to use - symbol or mnemonic?
can use either symbol or mnemonic
What does the IN operator do?
IN operator
- selects values of equal to one of a list
- value list must be enclosed in parent
- separated by commas or blanks
- character values must be enclosed in quotes
What are the arithmetic operators?
How do exponentiation?
* / + -
Exponent: **
What are the logical operators?
Symbol Mnemonic What
& AND Logical AND
| OR Logical OR
^ (?) ~ NOT Logical NOT
(there is a logical NOT symbol that I don’t know how to type, like L flipped and rotated 90 degrees)