Appendix B. Reserved Words in the Macro Facility
Table B.1 lists words that are reserved for use by the macro facility.
Table B.1. Reserved words in the macro facility
ABEND | DO | LET | QSYSFUNC | SYSEXEC |
ABORT | EDIT | LIST | QUPCASE | SYSFUNC |
ACT | ELSE | LISTM | RESOLVE | SYSGET |
ACTIVATE | END | LOCAL | RETURN | SYSRPUT |
BQUOTE | EVAL | MACRO | RUN | THEN |
BY | FILE | MEND | SAVE | TO |
CLEAR | GLOBAL | METASYM | SCAN | TSO |
CLOSE | GO | NRBQUOTE | STOP | UNQUOTE |
CMS | GOTO | NRQUOTE | STR | UNSTR |
COMANDR | IF | NRSTR | SUBSTR | UNTIL |
COPY | INC | ON | SUPERQ | UPCASE |
DEACT | INCLUDE | OPEN | SYMDEL | WHILE |
DEL | INDEX | PAUSE | SYMEXIST | WINDOW |
DELETE | INFILE | PUT | SYMGLOBL | |
DISPLAY | INPUT | QSCAN | SYMLOCAL | |
DMIDSPLY | KEYDEF[*] | QSUBSTR | SYSCALL | |
DMISPLIT | LENGTH | QUOTE | SYSEVALF | |
[*] Note that KEYDEF was made obsolete in SAS 8.2, but it is still recognized as a reserved word. |
Do not use a reserved word to name a macro program, a macro variable, ...
Get SAS® Macro Programming Made Easy, Second 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.