Chapter 12
Macro Language Elements
Macro Language Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Macro Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Using Macro Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Macro Statements That Perform Automatic Evaluation . . . . . . . . . . . . . . . . . . . . . 159
Macro Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Using Macro Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Macro Character Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Macro Evaluation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Macro Quoting Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Compilation Quoting Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Execution of Macro Quoting Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Quotation Marks and Parentheses without a Match . . . . . . . . . . . . . . . . . . . . . . . . 164
Macro Functions for Double-Byte Character Set (DBCS) . . . . . . . . . . . . . . . . . . . 165
Other Macro Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Automatic Macro Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Interfaces with the Macro Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Selected Autocall Macros Provided with SAS Software . . . . . . . . . . . . . . . . . . . . . 171
Overview of Provided Autocall Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Required System Options for Autocall Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Using Autocall Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Autocall Macros for Double-Byte Character Set (DBCS) . . . . . . . . . . . . . . . . . . . 173
Selected System Options Used in the Macro Facility . . . . . . . . . . . . . . . . . . . . . . . 173
Macro Language Elements
The SAS macro language consists of statements, functions, and automatic macro
variables. This section defines and lists these elements.
“Macro Statements” on page 158
“Macro Functions” on page 160
“Automatic Macro Variables” on page 167
Also covered are the interfaces to the macro facility provided by Base SAS software, the
SQL procedure, and SAS Component Language as well as selected autocall macros and
macro system options.
157
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset