BookmarkSubscribeRSS Feed
LucyDang
Obsidian | Level 7

Hello SAS gurus;

 

I have a problem running the proc sgmap in the course  SAS® Programming 1: Essentials. In all lesson, whenever I try to replicate and run the proc sgmap provided by Official SAS, the Log alway shows that "ERROR: Procedure SGMAP not found.". I do not understand why. Please help to fix this problem. Below is the code in the program "p106p03" of "Lesson 6: Exporting Results".

 

 

title1 "2016 Northern Atlantic Storms";

proc sgmap plotdata=pg1.storm_final;
    *openstreetmap;
    esrimap url='http://services.arcgisonline.com/arcgis/rest/services/World_Physical_Map';
    bubble x=lon y=lat size=maxwindmph / datalabel=name datalabelattrs=(color=red size=8);
    where Basin='NA' and Season=2016;
    keylegend 'wind';
run;

proc print data=pg1.storm_final noobs;
	var name StartDate MaxWindMPH StormLength;
	where Basin="NA" and Season=2016;
	format StartDate monyy7.;
run;
8 REPLIES 8
andreas_lds
Jade | Level 19

Please share information about the sas version and environment you are working with. It seems that you don't have SAS/Graph installed or licenced.

LucyDang
Obsidian | Level 7

Hi andreas_lds,

 

Please find attached the status of my SAS package

 

Picture1.jpg

Reeza
Super User
You need to have the latest version of SAS 9.4 TS1M5. You can check your version using

Proc product_status;run;
LucyDang
Obsidian | Level 7

Hi Reeza,

 

Please find attached the status of my SAS package

 

Picture1.jpg

Reeza
Super User
So you have SAS 9.4 M4 (first line in your results).
You cannot run PROC SGMAP. If you want to test those sections, either use SAS Academics on Demand or SAS UE.
gioboscaino
Calcite | Level 5

Hi!

I'm facing the same problem. As you suggested I'm using SAS On Demand.

I've submitted the procedure of the ep101d01.sas file but the map does not appear (in the xlsx file too).

In the Log there is not any advise.

Reeza
Super User

@gioboscaino please post this as a new question.

This current thread is two years old, only the original respondents would see it, and it's not the same issue most likely. 

Please include your code and log, even though you say it has no 'advise'. 

MarcosDemenis
Calcite | Level 5

To solve the problem just change from http:// to https://

 

title1 "2016 Northern Atlantic Storms";

proc sgmap plotdata=pg1.storm_final;
    *openstreetmap;
    *esrimap url='http://services.arcgisonline.com/arcgis/rest/services/World_Physical_Map';
    esrimap url='https://services.arcgisonline.com/arcgis/rest/services/World_Physical_Map';
    bubble x=lon y=lat size=maxwindmph / datalabel=name datalabelattrs=(color=red size=8);
    where Basin='NA' and Season=2016;
    keylegend 'wind';
run;

proc print data=pg1.storm_final noobs;
	var name StartDate MaxWindMPH StormLength;
	where Basin="NA" and Season=2016;
	format StartDate monyy7.;
run;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 8 replies
  • 1443 views
  • 2 likes
  • 5 in conversation