Features: |
CITY geocoding method
|
Other features: |
|
Data set: | mapsgfk.uscity_all (lookup data set) |
Sample library member: | GEOCITY |
data training (label='Selected SAS training locations in USA'); infile datalines dlm=','; length city $ 24 state $ 2; input city /* City name */ state; /* Two-character postal code */ datalines; Atlanta, GA Bedminster, NJ Cary, NC Chicago, IL Dayton, OH Des Moines, IA Detroit, MI Hartford, CT Miami, FL Middleton, MA Minneapolis, MN New York, NY Overland Park, KS Philadelphia, PA Phoenix, AZ San Antonio, TX San Francisco, CA Seattle, WA ; run;
proc geocode method=city /* Specify geocoding method */ data=training /* Input data set of cities */ out=geocoded_training; /* Output data set with LONG, LAT values */ run;
proc print data=geocoded_training noobs; run; quit;
data training (label='Selected SAS training locations in USA'); infile datalines dlm=','; length city $ 24 state $ 2; input city /* City name */ state; /* Two-character postal code */ datalines; Atlanta, GA Bedminster, NJ Cary, NC Chicago, IL Dayton, OH Des Moines, IA Detroit, MI Hartford, CT Miami, FL Middleton, MA Minneapolis, MN New York, NY Overland Park, KS Philadelphia, PA Phoenix, AZ San Antonio, TX San Francisco, CA Seattle, WA ; run;