123 包含 1 个 “3”
133 包含 2 个 “3”
333 包含 3 个 “3”
456 包含 0 个 “3”
here is my script
data test;
testnum = 123;
run;
data test;
set test;
teststring = put(testnum, 8.);
numof3 = count(compress(teststring),"3");
run;
any other solutions?
Thanks....

|
楼主: jackbt123
|
1604
5
[原创博文] [SAS Data Management] 计算一个数包含多少个数字“3”? |
|
硕士生 59%
-
|
| ||
|
|
| ||
|
三人行必有我师
|
||
| ||
| ||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


