Macro Quoting |
Different macro quoting functions mask different special characters and mnemonics so the macro facility interprets them as text instead of as macro language symbols.
The following table divides the symbols into categories and shows which macro quoting functions mask which symbols.
Group | Items | Macro Quoting Functions |
---|---|---|
A | + -- */<>=¬^|~;, # blank AND OR NOT EQ NE LE LT GE GT IN | all |
B | &% | %NRSTR, %NRBQUOTE, %SUPERQ, %NRQUOTE |
C | unmatched' "() | %BQUOTE, %NRBQUOTE, %SUPERQ, %STR*, %NRSTR*, %QUOTE*, %NRQUOTE* |
Function | Affects Groups | Works At | |
---|---|---|---|
%STR | A, C* | macro compilation | |
%NRSTR | A, B, C* | macro compilation | |
%BQUOTE | A, C | macro execution | |
%NRBQUOTE | A, B, C | macro execution | |
%SUPERQ | A, B, C | macro execution (prevents resolution) | |
%QUOTE | A, C* | macro execution. Requires unmatched quotation marks and parentheses to be marked with a percent sign (%). | |
%NRQUOTE | A, B, C* | macro execution. Requires unmatched quotation marks and parentheses to be marked with a percent sign (%). | |
*Unmatched quotation marks and parentheses must be marked with a percent sign (%) when used with %STR, %NRSTR, %QUOTE, and %NRQUOTE. |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.