data _null_;
str="SAS汉字使用GBK字符集,例如:三国大将张郃";
str=compress(str,'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
put str=;
do i=1 to 50 by 2;
result=substrn(str,i,2);
if result=':' then substr(str,i,2)=' ';
if result=',' then substr(str,i,2)=' ';
end;
str=compress(str);
put str=;
run;