请教:删除数据集中的观测?
从数据集A中查找有数据集B的相等观测,然后删除。我是用下列程序:
data a;
input x y z;
cards;
1 2 3
5 4 3
6 9 8
;
run;
data b;
input x y;
cards;
1 3
5 4
;
run;
proc sql;
create table c as
select * from a
where not exists
(select * from b where a.x=b.x or a.y=b.y);
quit;
由于A,B的观测非常多(几百万,变量也很多),运行非常慢。
请教高人;有没有其他速度快的办法? 我的版本SAS9.1
谢谢!!