%MAPLABEL Macro

Creates an output data set that can be used with the ANNO= option for PROC GMAP.
Variables written out: FUNCTION, STYLE, COLOR, SIZE, HSYS
Requirement: You must run the %ANNOMAC macro before using any other annotate macros. For more information, see Making the Macros Available.

Syntax

%MAPLABEL (map-dataset, attr-dataset,output-dataset,label-var,id-list,font=font_name,color=n,
size=n,hsys=n);

Parameters

map-dataset
the name of the map to be annotated.
attr-dataset
the name of the data set containing the text to be shown on each ID value.
output-dataset
the name of the annotate data set created by the macro.
label-var
the name of the label variable to place on the map (the text for annotate).
id-list
the list of ID variables that you would issue in PROC GMAP to create the map. These values need to be on both the map and the attribute data sets. If you also supply the SEGMENT variable, then every polygon will get a value. Without the SEGMENT variable, only one label per ID set will be shown over the collection of polygons. For example, Hawaii with SEGMENT gets a label on each island, whereas without SEGMENT, there is only one label centered on the entire set of islands.
font
specifies a font name for the STYLE variable.
color
specifies a value for the COLOR variable.
size
specifies a value for the SIZE variable. Defaults to 2.
hsys
specifies a value for the HSYS variable. Defaults to 3.