To
sort the input map data set, use the SORT procedure in Base SAS, for
example:
/* arrange the observations in desired order */
proc sort data=mapdata out=mapsort;
by state;
run;
/* remove the county boundaries */
proc gremove data=mapsort out=newmap;
by state;
id county;
run;
Notice that the GREMOVE
procedure uses the same BY statement as the SORT procedure.
See the
Base SAS Procedures Guide for more information about the SORT procedure.
Note: If an observation is encountered
for which the BY-variable value is out of the proper order, the GREMOVE
procedure stops and issues an error message.