BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Lorna
Fluorite | Level 6

I am looking for a specific employer in a SAS data set. The data set has not been reviewed for spelling so if I am looking for University it could be entered as Unversity, University, Univercity ... and I need to pick them all up

I've tried scaning, counting the matching letters, 'contains'. These are work but I am still missing some.

 

Any ideas?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Lorna
Fluorite | Level 6

Thank you.  I looked at those too but did not go that route, yet.  Guess I had better dive in and do it.

View solution in original post

4 REPLIES 4
Lorna
Fluorite | Level 6

thank you for taking the time to reply.  I did the "sounds like" technique.  I ended up getting Pizza Hut as a return for Puget and got nothing when the word was Pudget.  I figured there would be something more.

 

Thanks again

ChrisBrooks
Ammonite | Level 13

As well as the excellent suggestion from @Reeza there are some other ideas here -> https://blogs.sas.com/content/sgf/2015/01/27/how-to-perform-a-fuzzy-match-using-sas-functions/ although having done some fuzzy matching in the past I couldn't guarantee that anything you try will always catch all the potential matches you'd like. You might have to incorporate several of the suggested techniques to get a good coverage.

Lorna
Fluorite | Level 6

Thank you.  I looked at those too but did not go that route, yet.  Guess I had better dive in and do it.

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1217 views
  • 0 likes
  • 3 in conversation