Using SAS Macro Functions to Mask Special Characters
Macro Quoting Functions
The SAS programming language
uses matched pairs of either double or single quotation marks to distinguish
character constants from names. The quotation marks are not stored
as part of the token that they define. For example, in the following
program, Var is stored as a 4-byte variable that has
the value
text
. If text
were
not enclosed in quotation marks, it would be treated as a variable
name. Var2 is stored as a 7-byte variable that has
the value example
.
data one; var='text'; text='example'; var2=text; run;
Similarly, the title text in the following example is Joan's Report. Although the TITLE statement contains a matched pair of double quotation marks, the title ...
Get SAS Certified Professional Prep Guide 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.