Hello, i currently have a table set up as which is called "store_long_lat" I would like to calculate the distance between Latitude Longitude, and Latitude1 Longitude1. and call it distance within the same table. There are 2000 rows in this table so I wold like to stray from the method where you have to input your Long and Lat values . I tried the below code and it produces a table with no data. Feel like am I close but just cant get an output to produce. data distance; set store_long_lat; input Latitude Longitude latitude1 longitude1; distance = geodist(Latitude, Longitude, latitude1, longitude1); put 'distance = ' Distance 'Miles'; datalines; run; I ran the below which produces a distance value inthe log but this does not work for my scenario: data _null_; distance = geodist(44.746052,-65.516649,43.68,-79.63); put 'Distance= ' distance 'kilometers'; run;
... View more