The SGMAP procedure might produce a warning message and fail to draw a map


The SGMAP procedure might fail to produce a map and issue either of the following warning messages:

WARNING: Required url in MAPREGIONLAYER statement is missing. The plot will not be drawn.

WARNING: Some features may not be displayed on the map because of missing location information in the data.

This problem occurs when the map identification variable referenced in the MAPID= option in the CHOROMAP statement in PROC SGMAP is not defined using an uppercase name. 

To circumvent this problem, rename the map identification variable to use all uppercase values. See the Full Code section for an example.

Full Code

The following code renames the myid variable to MYID in the WORK.WORLD map data set. Modify the data set name and variable names in the PROC DATASETS step to match your data set and variable names.

proc datasets lib=work memtype=data nolist;

  modify world;

  rename myid=MYID;

quit;