| Batch Geocoding |
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.
Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.