BookmarkSubscribeRSS Feed
aasdfafafsdfsaf
Calcite | Level 5

So i've got a data set with two columns that contain addresses and i want to see if the two addresses are the same.

However sometimes the location would be like 24 Apple Drive and other times it would be 24 Apple Dr or Apple Dr 24.

 

I was thinking of using Regex for this but it seems like regex only looks for patterns that i explicitly code in. Is there anyway i can code this or do i have to do it by hand for the 1000 rows.

 

Thanks a bunch

2 REPLIES 2
Reeza
Super User
COMPGED and or COMPLEV are some functions you can look into. In general, fuzzy matching is a pain. SAS has a product designed entirely for that which is great, if you have access.
aasdfafafsdfsaf
Calcite | Level 5
Thanks for the hint, ill definitely take a look at it now!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 771 views
  • 0 likes
  • 2 in conversation