%let z = substr(s,max(1,pos-8),min(9,length(s)) );
data x;
s='浙江恒逸物流100%股权,宁波恒逸物流100%股权';
pos=0;
x=" ";
do i=1 to 3;
pos= find(s, '%', pos+1);
put pos;
if pos ne . ;
y=compress(&z, '0123456789.%-','k');
put y;
x=x||","||y;
put x;
end;
run;

|
楼主: 凡尘梦1990
|
3060
2
[问答] [SAS]字符查找和拼接 |
|
已卖:189份资源 讲师 46%
-
|
回帖推荐 | ||
|
就这样吧。
|
|||
|
|
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


