Thanks for your input here. I was wondering why it did not work exactly as planned data have; infile cards dlm=','; input atty :$30. firm :$30.; cards; Scott,Scott and Wagner Hampshire,Mills and Walker Beasley,Jones and Beasley Beasley,Jones and Bonds ; run; data want; set have; choose = ifc(findw(firm,strip(atty)),' ','Y'); run; For the last one Beasley,Jones and Bonds I would get a 'Y' because it see the 'B' which is a character match. Is there a way to force it to look at the first 2 or 3 characters. In this example I would want this last entry NOT to be a match
... View more