The INTO clause for
the SELECT statement can assign the result of a calculation or the
value of a data column (variable) to a macro variable. If the macro
variable does not exist, INTO creates it. You can check the PROC SQL
macro variable SQLOBS to see the number of rows (observations) produced
by a SELECT statement.
The INTO clause can
be used only in the outer query of a SELECT statement and not in a
subquery. The INTO clause cannot be used when you are creating a table
(CREATE TABLE) or a view (CREATE VIEW).
Macro variables created
with INTO follow the scoping rules for the %LET statement. For more
information, see .
Values assigned by the
INTO clause use the BEST12. format.