BookmarkSubscribeRSS Feed
kimwonjin19
Calcite | Level 5

I ran this code: 

DATA marker_map; 

input id $2. VALUE $7. MARKERSYMBOL $5. MARKERCOLOR $6.; 

VALUE = strip(value); 

DATALINES; 

 ms Male   X     blue

 ms Female plus  green

run; 

 

PROC SGPANEL data= death_1 dattrmap=marker_map;  

panelby Age_group;

SCATTER Y = COVID_19_Deaths X = Total_Deaths / group =Sex attrid=ms; 

RUN;

 

And for some reason it runs the proc sgpanel BUT it doesn't want to read attrid=ms. It keeps returning with the warning: Invalid attrid "MS" specified. The attrid will be ignored. 

 

What am I doing wrong? 

 

1 REPLY 1
ballardw
Super User

Provide the contents of your Dattrmap dataset marker_map.

 

If you do not have id "ms" that is the primary issue.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 792 views
  • 0 likes
  • 2 in conversation