Hi I am trying to find all instances when two words are present in a text field. In MS SQL I can use CONTAINS(t1.NOTES, 'NEAR((Apples, Red),3)'), meaning the words Apples and Red are located near each other. When I try this in SAS EG 71. I get ERROR: Function CONTAINS could not be located. I also tried prxmatch("!(Apples|Red)!i", t1.NOTES)> 0, however either word shows up in the results. So if we have 1 - Apple Granny Green 2 - Apple Spartan Red 3 - Apple Jazz Red 4 - Apple Yellow Delicious #2 and #3 are valid I am doing this in Proc SQL. Thanks
... View more