BookmarkSubscribeRSS Feed
mraza12
Calcite | Level 5

Hi,

 

I want to know if it's possible to find all addresses within a certain mile radius of an address (For instance, 123 Random St, City, 12345).

I just want to find any address that falls within a certain mile radius of an address. I do not have any list of addresses that I want to get a match on (and that's not what I'm looking for). 

 

Also, if there is a list of all US address stored in a SAS library. Maybe I could use that to match it against my address. I am not certain if there is one. 

 

Thanks for the help!

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

You can get US addresses here.

http://support.sas.com/rnd/datavisualization/mapsonline/html/geocode.html

As for the join based on distance, you can use function GEODIST.

Be aware that if you have many addresses to match, it can get very slow very quickly unless you are clever and optimise the join.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 3520 views
  • 0 likes
  • 2 in conversation