文字列から英数字でない文字を検索し、最初に検索された文字の位置を返します。
| カテゴリ: | 文字 |
| 制限事項: | この関数は、I18Nレベル2に準拠しており、SBCS、DBCSおよびMBCS(UTF8)での使用目的で設計されています。 |
data _null_;
string='Next = Last + 1;';
j=0;
do until(j=0);
j=notalnum(string, j+1);
if j=0 then put +3 "That's all";
else do;
c=substr(string, j, 1);
put +3 j= c=;
end;
end;
run;j=5 c= j=6 c== j=7 c= j=12 c= j=13 c=+ j=14 c= j=16 c=; That's all