In the following example, the STATES.SHP file contains polygons
that compose the political boundaries of a U.S. states map. Only the STATE_FIPS
(the state FIPS codes), STATE_NAME (the state name), and STATE_ABBR (the two
letter state abbreviation) variables are included in the traditional map data
set, MYSTATES. STATE_FIPS is renamed FIPS, STATE_NAME is renamed STATE, and
STATE_ABBR is renamed ABBREV in the MYSTATES map data set.
PROC MAPIMPORT OUT=mystates DATAFILE="C:\states.shp";
SELECT STATE_FIPS STATE_NAME STATE_ABBR;
RENAME STATE_FIPS=FIPS STATE_NAME=STATE STATE_ABBR=ABBREV;
run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.