Hello, I want to understand starting position parameter in find function. data test;
xyz='She sells seashells? Yes, she does.';
startposexp=-22;
whereisShe_ineg22=find(xyz,'She','i',startposexp);
put whereisShe_ineg22=;
run; In this example whereisShe_ineg22=14 , Why? As i understand, because the start position is negative, we start at the end of the string and count 22 places, and get the character s. Then the function start search to left, and to right. Why? please see https://documentation.sas.com/?docsetId=lefunctionsref&docsetTarget=p00ab6ey29t2i8n1ihel88tqtga9.htm&docsetVersion=3.1&locale=en Thank you
... View more