Appendix 2
SAS Tokens
SAS Tokens
When SAS processes a program, a component called the word scanner reads the program, character by character, and groups the characters into words. These words are referred to as tokens.
List of Tokens
SAS recognizes four general types of tokens:
Literal
One or more characters enclosed in single or double quotation marks. Examples of literals include the following:
Table A2.1 Literals
’CARY’ |
"2008" |
’Dr. Kemple-Long’ |
’<entry align="center">’ |
Name
One or more characters beginning with a letter or an underscore. Other characters can be letters, underscores, and digits.
Table A2.2 Names
data |
_test |
linesleft |
f25 |
univariate |
otherwise |
year_2008 |
descending |
|
Number
A numeric ...
Get SAS 9.4 Macro Language, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.