proc sql;
create table c as select * from a ,b
where a.x=b.y;
quit;[/code:03c48]作者: shiyiming 时间: 2006-5-18 18:19 标题: 执行时间 你没有搞明白两个问题,一个是数据步的执行时机,另外一个是宏执行时机。作者: shiyiming 时间: 2006-5-22 23:48 标题: RE (1) "究竟是怎么回事 数据部的cc=1的值是不会传到宏里面去的"
Because 宏里面有 <data _NULL_;> which causes a seperated data steps. The 宏 can be changed to as below
%Macro deliver;
set b;
put cc;
%Mend deliver;
(2)其它方法 to join datasets by 定位相同值的records only.
data c;
set a;
set b;
retain cc 1;
run;作者: shiyiming 时间: 2006-5-23 00:05 标题: RE By the Way, forgot to mention that making宏statement should be moved to before its 执行时机.