BookmarkSubscribeRSS Feed
TB2
Fluorite | Level 6 TB2
Fluorite | Level 6

 

I am trying to geocode a large number of addresses at once using proc geocode. SAS sometimes gets hung up trying to geocode a single address that is overly general (made up example= 311 N.E. with a valid city, state and zip) and stops the entire geocoding proccess by producing the error below.

 

This makes it really difficult to geocode a lot of addresses at once because the geocoding program stops entirely. Is there a way to:

 

1) keep this error from happeining

Or

2) get sas to continue where it left off once it encounters the error

 

 

 

NOTE: The map data sets in library MAPSGFK are based on the digital maps from GfK GeoMarketing and are covered by their Copyright. 
      For additional information, see http://support.sas.com/mapsonline/gfklicense.
NOTE: Address data set had only 1 observations. Intermediate progress times not output.
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [GEOCODE ]
Segmentation Violation
 
Traceback of the Exception:
2                                                          The SAS System                             10:11 Thursday, March 23, 2017

 
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [GEOCODE ]
Segmentation Violation

 

 

Here is an example of my geocode program:

 

 

PROC GEOCODE
METHOD=STREET /* Geocoding method */
DATA=work.tmp_geocode1 /* Input address data */
OUT=GeoData.tmp_geocode_outputTEST1 /* Output data set */
lookupstreet=SASHELP.USM /*needs to point at USM dataset downloaded from SAS*/
attribute_var=(tract block);
RUN; 

 

 

I have SAS 9.3.

 

4 REPLIES 4
Kurt_Bremser
Super User

When you get a segmentation violation (which is basically a memory-related access error and signals a bug), you should put this immediately to the attention of SAS technical support.

art297
Opal | Level 21

This might help, although it says it's for 9.4: http://support.sas.com/kb/48/454.html

 

Art, CEO, AnalystFinder.com

 

ballardw
Super User

@TB2 wrote:

 

 

This makes it really difficult to geocode a lot of addresses at once because the geocoding program stops entirely. Is there a way to:

 

1) keep this error from happeining


Pre-validate your data (data check) that all of your addresses have required elements. And yes I know all too well that some folks address data is very messy.

rogerjdeangelis
Barite | Level 11
Worked with open source R ggmap

311 N E, Washington, DC 20002


%utl_submit_r64('
source("c:/Program Files/R/R-3.3.2/etc/Rprofile.site",echo=T);
library("ggmap");
lonlat_sample <- as.numeric(geocode("311 N E, Washington, DC 20002"));
class(lonlat_sample);
lonlat_sample;
res <- revgeocode(lonlat_sample, output="more");
res$postal_code;
res$neighborhood;
');

[1] "numeric"
[1] -77.00153  38.89586
[1] 20002
Levels: 20002
[1] Northeast Washington
Levels: Northeast Washington


sas-innovate-2024.png

 

Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 980 views
  • 0 likes
  • 5 in conversation