[code:11go60n9]data bbs;
input ID yymc $10. @@;
cards;
1 头孢唑林钠
2 肝素
3 氨甲环酸
4 头孢唑林钠
5 硝酸甘油
6 万古霉素
7 头孢呋辛钠
;
proc sql;
update bbs set yymc='头孢唑林钠' where yymc like '%头孢唑林%';
update bbs set yymc='万古霉素' where yymc like '%万古%';
quit;
/*将已经标准化的记录提取出来,建立cbs数据集*/
data cbs;
set bbs;
if yymc="头孢唑林钠" then output;
if yymc="万古霉素" then output;
run;
proc print;run;[/code:11go60n9]