30%macro mf_wordsinstr1butnotstr2(
35%local count_extr i extr_word outvar;
36%
if %length(&str1)=0 %then %
do;
37 %put &sysmacroname: str1 is empty, nothing to compare;
40%let count_extr=%sysfunc(countw(&Str1));
42%
do i=1 %to &count_extr;
43 %let extr_word=%scan(&Str1,&i,%str( ));
44 %
if %sysfunc(indexw(%superq(str2),%superq(extr_word)))=0 %then
45 %let outvar=&outvar &extr_word;
49%mend mf_wordsinstr1butnotstr2;