“%”到底是什么意思?我从其他人那里得到了这段代码,代码工作正常,但我只是不明白为什么必须把 % 放在变量前面。如果它是 %macro,我在库中看不到任何宏代码。任何解释都会有所帮助
proc sql;
connect to odbc as d(datasrc=source);
create table out as select * from connection to d
(
select
t.id,t.rule_id,
%application_id,
t.date,
%dpv, %dpvfn1, %dpvfn2, %dpvfn3,
%AddressValid,%AddressValidMsg,%AddressType,
from &db2 t
join &db3 dxs on t.id=dxs.id
left join &db4 dxr on t.id=dxr.id
);
disconnect from d;
quit;