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

Hi,

i am new on sas enterprise guide (7.11 version) so that reason my question sounds silly

i want to make routes for field teams for intensive points. I have data-set which includes decimal points at a city and i want to define 1km diameter-length fields which includes min 60 max 80 points.  To make this i took the center point (decimal) of the city and try to calculate the distance (haversine formula) from center and later making group of them which 1km distance interval but i can not make it right. Have you any advice or how can i make the distance calculation? 

By the way i am using computed columns to take this action not programming. Thank you in advance

Note: Geodist function does not exist in 7.11 version of SAS Enterprise Guide

 

LATITLONGIProvinceCity
36,6088334,32703neverlandnowhere
36,7130234,33731neverlandnowhere
36,4580434,15251neverlandnowhere
36,6338634,34518neverlandnowhere
36,6094934,31894neverlandnowhere
36,4583234,14116neverlandnowhere
36,5517834,23458neverlandnowhere
36,5935234,28714neverlandnowhere
1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

You can calculate the distances without needing the geodist function. Take a look at: http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps

 

Then, I'd use proc modeclus to find the closest 60 or 80 points. Code is provided at: http://www.sas-programming.com/2013/05/finding-closest-pair-in-dataset-using.html

 

Art, CEO, AnalystFinder.com

 

View solution in original post

2 REPLIES 2
art297
Opal | Level 21

You can calculate the distances without needing the geodist function. Take a look at: http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps

 

Then, I'd use proc modeclus to find the closest 60 or 80 points. Code is provided at: http://www.sas-programming.com/2013/05/finding-closest-pair-in-dataset-using.html

 

Art, CEO, AnalystFinder.com

 

tevfik
Calcite | Level 5

thank you for swift reply!

 

Now i must improve my coding technique on SAS 🙂

 

it s a bit hard for me because i m new on SAS Enterprise Guide

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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