依其在字串中的位置,來搜尋所指定的單字。
類別: | 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