Appendix 1
Reserved Words in the Macro
Facility
Macro Facility Word Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Reserved Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
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 389 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 FSP 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
389
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
390 Appendix 1 Reserved Words in the Macro Facility

Get SAS 9.4 Macro Language, 5th 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.