data步:
data _null_;
string1=tranwrd('abcx\abc', '\', '\\');
put string1=;
run;
结果为:abcx\\abc。
macro中:
%let string1=%sysfunc(tranwrd('abcx\abc', '\','\\')); %put &string1;结果为:abcx\abc。
无法正确运行,是否tranwrd不能用%sysfunc?尝试过translate函数可以在%sysfunc中正常运行有没有同学碰到过这种情况的。



雷达卡





京公网安备 11010802022788号







