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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1144 views
  • 0 likes
  • 2 in conversation