文字列から句読文字を検索し、最初に検索された文字の位置を返します。
| カテゴリ: | 文字 |
| 制限事項: | この関数は、I18Nレベル2に準拠しており、SBCS、DBCSおよびMBCS(UTF8)での使用目的で設計されています。 |
| z/OS固有: | この関数は、z/OS環境でのみ動作します。 |
| EBCDICコード順を使用してください。 |
data _null_;
string='Next = _n_ + 12E3;';
j=0;
do until(j=0);
j=anypunct(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=6 c== j=8 c=_ j=10 c=_ j=12 c=+ j=18 c=; That's all
data test; do dec=0 to 255; byte=byte(dec); hex=put(dec, hex2.); anypunct=anypunct(byte); output; end; proc print data=test; run;