I have question for hopewell and could you explain for me.
1. ' from a left join (select distinct id, 1 as h from b) b ' . what does '1' stands for?
2. ' case b.h when 1 then 1 else 0 end as h '. I knew 'case when ...' expression,
but never saw 'case expression' like you did here, and it is absolutly correct. So could say more about your solution.
Thanks millions and really appreciate.作者: shiyiming 时间: 2010-8-31 15:32 标题: Re: 数据集删除观测问题 [code:zaq0g1f4]proc sort data=a;by id;run;
proc sort data=b;by id;run;
data c;
merge a(in=_a_) b(in=_b_);
by id;
if _a_ and _b_ then h=1;else h=0;
run;[/code:zaq0g1f4]