From: jiyuan123 on
Dear SAS-Lers,

I find some interesting thing about indexw function.

why I get the odd result.

data a;
length string $20;
string='BBSI_EXT_0_COMMENT';
pos=indexw(upcase(string),'COMMENT','_');
put pos=;
run;


I got "pos=0".

if i use string='BBSI_EXT_0_COMMENT_';

it's ok.




thanks a lot.






2010-01-26



jiyuan123