The %BQUOTE and %NRBQUOTE
functions mask a character string or resolved value of a text expression
during execution of a macro or macro language statement. They mask
the following special characters and mnemonic operators:
' " ( ) + − * / < > = ¬ ^ ~ ; , # blank
AND OR NOT EQ NE LE LT GE GT IN
In addition, %NRBQUOTE
masks:
%NRBQUOTE is most useful
when the resolved value of an argument might contain
-
strings that look like macro variable
references but are not, so the macro processor should not attempt
to resolve them when it next encounters them.
-
macro invocations that you do not
want the macro processor to attempt to resolve when it next encounters
them.
Note: The maximum level of nesting
for the macro quoting functions is 10.
Tip: You can use %BQUOTE and %NRBQUOTE for all execution-time macro quoting
because they mask all characters and mnemonic operators that can be
interpreted as elements of macro language.
Quotation marks (
'
"
) do not have to be marked.
For a description of
quoting in SAS macro language, see
Macro Quoting.