data test;
input date yymmdd6. no name $;
formate date yymmdd8.;
cards;
080101 123 .
080101 457 .
080101 5624 .
080201 123 北京文化
080201 457 北京新华
;
run;
proc sort data=test;
by no;
run;
proc sql;
create table a as
select distinct no, name
from test
where name^=' '
;
quit;
data test1;
merge test(keep=date no) a;
by no;
run;