Hi, I am trying to explain.. Call scan : Returns the position and length of the nth word from a character string. Syntax : call scan(keepit,-1,p1,l1,' '); keepit :- String, in which we need to find out the position and length. -1 :- Count , If count is positive, then CALL SCAN counts words from left to right in the character string, if negative then from right to left. (same as for scan function) P1 and L1 are the nemeric variables p1 :- Position , specifies a numeric variable in which the position of the word is returned. L1 :- Length , specifies a numeric variable in which the length of the word is returned. ' ' :- delimiter (same as for scan function) Syntax : n=max(find(keepit,'Mr'),find(keepit,'Ms'),find(keepit,'Mrs')); to find the position number of 'Mr' , 'Ms' and 'Mrs'. for more information related to call scan : http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002255934.htm Linlin ----- Kindly correct me, if i am worng somewhere. looking for your valuable input. Regards Uma Shanker Saini
... View more