for example,
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....