文字列内の単語を位置指定して検索します。
カテゴリ: | DBCS |
種類: | NLSマクロ関数 |
& % ' " ( ) + − * / < > = ¬ ^ ~ ; , # blank AND OR NOT EQ NE LE LT GE GT IN
%macro a; aaaaaa %mend a; %macro b; bbbbbb %mend b; %macro c; cccccc %mend c; %let x=%nrstr(%a*%b*%c); %put X: &x; %put The third word in X, with KSCAN: %kscan(&x,3,*); %put The third word in X, with QKSCAN: %qkscan(&x,3,*);
X: %a*%b*%c The third word in X, with KSCAN: cccccc The third word in X, with QKSCAN: %c