
The web tools* gave 1972 miles, 7.7 miles, and 25 miles respectively. The default lookup data set for ZIP and CITY geocoding is SASHELP.
SAS GEODIST FUNCTION CODE
In previous releases, code that created a variable with a length of 200 might have produced a variable with a.

This behavior is different from the behavior in previous releases of SAS. Note SAS output dis1 and dis2 as blank, and 10.2 miles for dis3. PROC GEOCODE GEODIST function IveWare (SAS-callable program for multiple imputation). In a DATA step, if the SCAN function returns a value to a variable that has not yet been given a length, that variable is given the length of the first argument. Put "Distance between zipcodes 0211 is " dis3 Put "Distance between zipcodes 5003 is " dis2 Put "Distance between zipcodes 1001 is " dis1 In addition, for the pair that SAS could not calculate, I still could input on a web tool and found out the distance. I selected one of the calculated distances and compared it with the web site tools that calculated the distance between first zipcode and second zipcode and found that the result could not be matched to what the web tool calculations. I then used the GEODIST function to calculate the distances and found that SAS calculated some of pairs but not all of them. Open up Google Earth (may be called Google Earth pro) and navigate or search in the top left the area you want to see archived satellite images of.
SAS GEODIST FUNCTION INSTALL
Then I manually merge the ZIPCODE.DATA which has ZIP, x (which I assmed it was latitude)), and y (which I assumed as longitude) with my zipcode pair data. The first step is to download Google Earth from here, choose your operating system (PC or Mac), agree to the terms and install the program. Second, I downloaded manually the recent ZIPCODE.DATA from MAPSONLINE, but found that I actually couldn't save into the SASHELP path becuase no data can be added there. I didn't know why, but when I checked the SASHELP library, it was not there. I first used the zipcitydistance function, but got an error message saying that "" does not exist. Importing CSV Data SAS Institute has a training center located on 7th Avenue in New York, but lunch is not provided. Here is the complete code for this example. I would like to calculate the distance between two columns (about 100 rows) of zipcodes (source zipcodes and destined zipcodes) in SAS university version. GEODIST function You will also combine datasets and use multiple PROC SGMAP statements to plot data onto background maps.
