Chapter Contents |
Previous |
Next |
The GREMOVE Procedure |
Requirements: | At least one variable is required. |
See also: | BY Statement |
Featured in: | Removing State Boundaries from U.S. Map |
Syntax |
BY
<DESCENDING>variable-l
<...<DESCENDING>variable-n> <NOTSORTED>; |
Required Arguments |
The BY variables in the input map data set become the ID variables for the output map data set.
Options |
This option affects only the variable that immediately follows the option.
Ordering Observations |
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 SAS Procedures Guide for further information on 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.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.