Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_wordsinstr1andstr2.sas File Reference

Returns words that are in both string 1 and string 2. More...

Go to the source code of this file.

Detailed Description

Compares two space separated strings and returns the words that are in both. Usage:

%put %mf_wordsInStr1andStr2(
  Str1=blah sss blaaah brah bram boo
  ,Str2=   blah blaaah brah ssss
);

returns:

‍blah blaaah brah

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

Definition in file mf_wordsinstr1andstr2.sas.