The following example
illustrates using a delimiter, a period (.), between the libref and
the table name to reference the macro variable.
%let CarType=Wagon;
%let lib=sashelp;
title "&CarType.s from the &lib..CARS Table";
proc freq data=&lib..cars;
tables Origin/nocum;
where Type="&CarType";
run;
proc print data=&lib..cars;
var Make Model Type MSRP;
where Type="&CarType";
run;
Note: When the character following
a macro variable reference is a period, use two periods. The first
is the delimiter for the macro reference, and the second is part of
the text.
Output 7.3 PROC FREQ Output
Output 7.4 PROC PRINT Output