ok,guys,the complete form is as follows:
============
data a;
input id ming $ sex $ @@;
cards;
1 MARY F 3 ANN F 4 TOM M
;
data b;
input id name $ sex $ @@;
cards;
2 JOSE F 5 ERIE M 6 MAY F 1 MARY M
;
data result;
set a(rename=(ming=name)) b(in=inb);
*by id;
if inb=1 then bonus=100;
run;
proc print;
title'串接数据集';
run;
===============
it's really simple,but i just don't want to ignore it .and by the way ,what dose '*by id;' mean in this program?
Anyway ,thanks for your response.