Chapter Contents

Previous

Next
Using Spatial Data with SAS/GIS Software

Batch Geocoding Example

The following example shows a typical set of variable assignments for the %GCBATCH macro:

%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 System command line:

af c=sashelp.gis.geocodeb.scl

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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.