O'Reilly logo

SAS 9.4 Macro Language, 5th Edition by

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix 1
Reserved Words in the Macro
Facility
Macro Facility Word Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
Reserved Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
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 391 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
391
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
392 Appendix 1 Reserved Words in the Macro Facility

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required