Combining Macro Variable References with Text
Overview
You can reference macro
variables anywhere in your program. Some applications might require
placing a macro variable reference adjacent to leading text (text&variable) or trailing text (&variabletext)
or referencing adjacent macro variables (&variable&variable)
in order to build a new token. When you combine macro variable references
and text, it is important to keep in mind how SAS interprets tokens.
Remember that a token
ends when the word scanner detects either the beginning of a new token
or a blank after a token.
You can place text immediately before a macro variable reference to build a new token. For example, suppose that data sets are stored in a SAS library, using the naming ...
Get SAS Certification Prep Guide, 4th 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.