tranwrd函数:将字符串中的某些字符替换为其他字符。data _null_;a='abc';b=tranwrd(a,'bc','fff');put a= b=;run;在log中得到如下结果:a=abc b=afff