A macro language statement
instructs the macro processor to perform an operation. It consists
of a string of keywords, SAS names, and special characters and operators,
and it ends in a semicolon. Some macro language statements are used
only in macro definitions, but you can use others anywhere in a SAS
session or job, either inside or outside macro definitions (referred
to as open code). The following table lists macro language statements
that you can use in both macro definitions and open code.
Macro Language Statements Used in Macro Definitions and Open
Code
|
|
|
|
|
Copies specified items
from a SAS library.
|
|
|
|
Creates macro variables
that are available during the execution of an entire SAS session.
|
|
Supplies values to macro
variables during macro execution.
|
|
Creates a macro variable
and assigns it a value.
|
|
Begins a macro definition.
|
|
Writes text or the values
of macro variables to the SAS log.
|
|
Deletes the indicated
macro variable named in the argument.
|
|
Invokes a SAS call routine.
|
|
Issues operating system
commands.
|
|
Defines a new macro
variable or modifies the value of an existing macro variable on a
remote host or server.
|
|
Deletes a macro definition
from the WORK.SASMACR catalog.
|
|
Closes stored compiled
macros and clears the SASMSTORE= library.
|
|
Assigns the value of
a macro variable on a remote host to a macro variable on the local
host.
|
|
Defines customized windows.
|
The following table
lists macro language statements that you can use only in macro definitions.
Macro Language Statements Used in Macro Definitions Only
|
|
|
Stops the macro that
is executing along with the current DATA step, SAS job, or SAS session.
|
|
|
|
Executes statements
repetitively, based on the value of an index variable.
|
|
Executes statements
repetitively until a condition is true.
|
|
Executes statements
repetitively while a condition is true.
|
|
|
|
Branches macro processing
to the specified label.
|
|
Conditionally processes
a portion of a macro.
|
|
Identifies the destination
of a %GOTO statement.
|
|
Creates macro variables
that are available only during the execution of the macro where they
are defined.
|
|
|
|
Causes normal termination
of the currently executing macro.
|