local macro variable
a macro variable that is available only within the macro in which it was created and
within macros that are invoked from within that macro. A local macro variable
ceases to exist when the macro that created it stops executing.
local scope
in SAS macro programming, indicates narrowed context boundaries for referencing
local macro variables within the current macro.
logical expression
a type of macro expression that consists of a sequence of logical operators and
operands. A logical expression returns a value of either true or false when it is
executed.
macro
a SAS catalog entry that contains a group of compiled program statements and stored
text.
macro call (macro invocation)
a statement that invokes a stored compiled macro program.
macro compilation
the process of converting a macro definition from the statements that you enter to a
form that is ready for the macro processor to execute. The compiled macro is then
stored for later use in the SAS program or session.
macro execution
the process of following the instructions that are given by compiled macro program
statements in order to generate text, to write messages to the SAS log, to accept
input, to create or change the values of macro variables, or to perform other
activities. The generated text can be a SAS statement, a SAS command, or another
macro program statement.
macro expression
any valid combination of symbols that returns a value when it is executed. The three
types of macro expressions are text, logical, and arithmetic. A text expression
generates text when it is resolved (executed) and can consist of any combination of
text, macro variables, macro functions, and macro calls. A logical expression
consists of logical operators and operands and returns a value of either true or false.
An arithmetic expression consists of arithmetic operators and operands and returns a
numeric value.
macro facility
a component of Base SAS software that you can use for extending and customizing
SAS programs and for reducing the amount of text that must be entered in order to
perform common tasks. The macro facility consists of the macro processor and the
macro programming language.
macro function
a function that is defined by the macro facility. Each macro function processes one or
more arguments and produces a result.
macro invocation
a statement that invokes a stored compiled macro program.
482 Glossary