CORE
mf_wordsinstr1butnotstr2.sas File Reference

Returns words that are in string 1 but not in string 2. More...

Go to the source code of this file.

Detailed Description

Returns words that are in string 1 but not in string 2.

Compares two space separated strings and returns the words that are in the first but not in the second. Usage:

%let x= %mf_wordsInStr1ButNotStr2(
   Str1=blah sss blaaah brah bram boo
  ,Str2=   blah blaaah brah ssss
);

returns:

sss bram boo

Parameters
str1=string containing words to extract
str2=used to compare with the extract string
Warning
CASE SENSITIVE!
Version
9.2
Author
Allan Bowe

Definition in file mf_wordsinstr1butnotstr2.sas.