DATA Step, Macro, Functions and more

Identifying similar strings

Not applicable
Posts: 0

Identifying similar strings


I want to compare one basic string with a number of strings, and identify the string which is most similar with the basic string. Is there a nice Macro facility or a SAS procedure that may manage this problem?
SAS Employee
Posts: 183

Re: Identifying similar strings

Posted in reply to deleted_user
Have a look at these functions
- SOUNDEX Function ->
- SPEDIS Function ->

And these samples
- 24582 - Combine data sets based upon similar values ->
Encode character strings using SOUNDEX to aid in combining the data based upon similar but not exact values.

- 33340 - Using DATA Step functions to check character values or variables for near equality ->
Several DATA step functions can be used to quantify or measure the difference between two character values

or these papers

Please share your solution
Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation