文字列から空白文字(空白、水平タブ、垂直タブ、キャリッジリターン、ラインフィード、フォームフィード)を検索し、最初に検索された文字の位置を返します。
| カテゴリ: | 文字 |
| 制限事項: | この関数は、I18Nレベル2に準拠しており、SBCS、DBCSおよびMBCS(UTF8)での使用目的で設計されています。 |
data _null_;
string='Next = _n_ + 12E3;';
j=0;
do until(j=0);
j=anyspace(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=7 c= j=11 c= j=13 c= That's all
data test; do dec=0 to 255; byte=byte(dec); hex=put(dec, hex2.); anyspace=anyspace(byte); output; end; proc print data=test; run;