SAS Institute. The Power to Know

SAS/GIS(R) 9.2: Spatial Data and Procedure Guide

space
Previous Page | Next Page

Batch Geocoding

Batch Geocoding Example

The following example uses the batch geocoding macro to geocode the addresses in the GEOPERM.DCADDR address data set with the DCMAP.DCMAP.DCMAP SAS/GIS map:

%gcbatch(glib=geoperm,
         geod=geoperm.dcaddr,
         nv=name,
         av=addr,
         cv=city,
         sv=state,
         zv=zip,
         mname=dcmap.dcmap.dcmap,
         pv=block county tract);

After you submit the %GCBATCH macro, issue the following command from any SAS command line:

af c=sashelp.gis.geocodeb.scl

The results are written to the address data set, GEOPERM.DCADDR. If a WRITE failure occurs, then the results are written to the temporary work data set, WORK._GEOCODE.

space
Previous Page | Next Page | Top of Page