SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 48582: Perform a fuzzy merge by comparing strings for similarities

DetailsCodeOutputAboutRate It

Overview

This sample shows how to use the complev function to compare and find strings that are similar, but not an exact match. This is sometimes called a "fuzzy merge". SAS provides several string comparison functions, including
  • compare
  • soundex
  • compged
  • complev
  • spedis
For the compged, complev and spedis functions, the programmer needs to determine what is an acceptable cost or distance between the strings to determine they are a possible match. See the documentation for more information.

Additional Documentation

Documentation for BASE SAS Functions


These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.