BookmarkSubscribeRSS Feed
Calcite | Level 5


I need to create a US map that contains all of its territories.  I'm currently using SAS 9.3.  The US map dataset provided with 9.3 only contains Puerto Rico.  I've tried using the North American map and only keeping the countries that I need.  The problem with this approach  is that the state boundaries are not outlined on the map.  I've tried to create my own map dataset by retrieving, for example, the Virgin Islands coordinates from the North American dataset and merging it with the US map dataset.  Although VI was added to the map, it was placed on top of CA and it was very tiny.  I think the X and Y coordinates need to be adjusted, but I'm not sure how to do that.  Any suggestions?

Thanks in advance.

Super User

41776 - Create a map with colors defined from a color ramp shows an example with moving Alaska and Hawaii to show near continental US. That may give you some pointers.

The Virgin Islands are small, Guam and the other protectorates not much bigger.

SAS Employee

Are you using 9.3m2, by any chance?  If so, you can use MAPSGFK.US_ALL.  It contains ALL of the parts of the US including the Virgin Islands.  Look to see if the library MAPSGFK exists and contains this data set. (MAPSGFK is the way to go in the future.  MAPS is being eliminated in the future and is not being updated.)

If not, you need to combine the data sets using the UNprojected data and combine the UNprojected data into it.

Look at Proc Contents for the various data sets in MAPS to see if they are unprojected.  For example, you can use the data sets COUNTIES, STATES or NAMERICA.



Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.


Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 3 in conversation