Appendix 1
Reserved Words in the Macro
Facility
Macro Facility Word Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
Reserved Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
Macro Facility Word Rules
The following rules apply to the macro facility.
Do not use a reserved word as the name of a macro, a macro variable, or a macro
label. Reserved words include words reserved by both the macro facility and the
operating environment. When a macro name is a macro facility reserved word, the
macro processor issues a warning, and the macro is neither compiled nor available
for execution. The macro facility reserves the words listed under “Reserved Words”
on page 379 for internal use.
Do not prefix the name of a macro language element with SYS because SAS
reserves the SYS prefix for the names of macro language elements supplied with
SAS software.
Do not prefix macro variables names with SYS, AF, or DMS in order to avoid macro
name conflicts.
Reserved Words
The following is a list of reserved words for the macro facility.
ABEND GO NRBQUOTE STR
ABORT GOTO NRQUOTE SUBSTR
ACT IF NRSTR SUPERQ
ACTIVATE INC ON SYMDEL
BQUOTE INCLUDE OPEN SYMGLOBL
BY INDEX PAUSE SYMLOCAL
CLEAR INFILE PUT SYMEXIST
CLOSE INPUT QKCMPRES SYSCALL
CMS KCMPRES QKLEFT SYSEVALF
379
COMANDR KINDEX QKSCAN SYSEXEC
COPY KLEFT QKSUBSTR SYSFUNC
DEACT KLENGTH QKTRIM SYSGET
DEL KSCAN QKUPCASE SYSRPUT
DELETE KSUBSTR QSCAN THEN
DISPLAY KTRIM QSUBSTR TO
DMIDSPLY KUPCASE QSYSFUNC TSO
DMISPLIT LENGTH QUOTE UNQUOTE
DO LET QUPCASE UNSTR
EDIT LIST RESOLVE UNTIL
ELSE LISTM RETURN UPCASE
END LOCAL RUN WHILE
EVAL MACRO SAVE WINDOW
FILE MEND SCAN
GLOBAL METASYM STOP
380 Appendix 1 Reserved Words in the Macro Facility

Get SAS 9.4 Macro Language: Reference, Fourth Edition, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.