You are not doing some exact match, so check other distance function LIKE: spedis(), gendis(),complev() .......
data MATCH;
length VAR $30;
input VAR $;
infile datalines dlm=',';
datalines;
testing.test,
Does work,
Special % char
;
run;
data HAVE;
length FVAR $300;
input FVAR $;
infile datalines dlm=',';
datalines;
testing.test the test code,
Does work or not,
Does not work or what,
Special % character in a string,
This is not included,
The test of testing.test
TESTING.TEST
;
run;
proc sql;
create table WANT as
select A.*,B.*
from HAVE A, MATCH B
group by B.VAR
having spedis(strip(lowcase(A.FVAR)),strip(lowcase(B.VAR)))=
min(spedis(strip(lowcase(A.FVAR)),strip(lowcase(B.VAR))));
quit;
... View more