Hi, I have SAS9.1.
I am trying to create a university-country map from a dataset.
I tried :
proc gmap data = have map=maps.new;
gives me the error:
167 proc gmap data = data = have map=maps.new;
ERROR: Libname MAPS is not assigned.
168 id university;
169 choro country;
NOTE: The previous statement has been deleted.
I need to dedupe the new dataset into the university column. NOt sure if gmap is not valid.
Any help will be appreciated.
1. Check if you have SAS/GRAPH licensed, if you can run GCHART procs you do. Otherwise run the code below and make sure SAS/GRAPH shows up in the list.
proc setinit; run;
2. For PROC GMAP data points to the data set that has the data that you want to graph. MAP= refers to the data that has the mapping data. Check your default SAS library and see what the maps library is called and which dataset has the US boundaries that you want. Your log is saying that maps doesn't exist, but I'm fairly certain it's been around, even in SAS 9.1. Take a look at your library, it may be called mapssas or maps or something along those lines.
2b. Did you create a library called maps and import a SHP file you called NEW to the library? That's what your code is implying.
3. Why are you using SAS 9.1 -> upgrades are included in your license. If because your work hasn't updated, let them know it's more than 15 years old. If it's because you're using an illegal copy, and assuming you're only using it for learning purposes consider using SAS University Edition which is free, and then you can use GTL with polygon plots to make maps.
The error seems to indicate that Proc GMAP is there but the MAPS library is not.
I would suspect that you do not have the MAPS Library loaded on your system or you have defined MAPS to a location that does not exist. There is not a "new" data set in the official MAPS library.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.