BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
KlausKaspar
Calcite | Level 5

Hi, 

I have a problem that could be easy to solve, but I haven't found an answer yet.

 

KlausKaspar_0-1591345595353.png

 

I would like to get rid of these numbers that seem to be auto-generated by SAS, but can't find a command to do so. I'm relatively new to SAS and I would appreciate any help this community can give. I hope displaying my code won't be necessary here.

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16

The group labels for the at-risk table are group numbers, and these numbers appear in the legend. Numbers are used rather than the actual labels because the length of the longest label (13) is greater than the default that is set by the maximum label length option (MAXLEN=12). You can display labels rather than the group numbers by specifying a MAXLEN= value equal to the maximum group label length. So if you update the MAXLEN=13 then this should resolve the issue.

Thanks,
Jag

View solution in original post

3 REPLIES 3
Jagadishkatam
Amethyst | Level 16
Could you please share the code you used for this plot
Thanks,
Jag
Jagadishkatam
Amethyst | Level 16

The group labels for the at-risk table are group numbers, and these numbers appear in the legend. Numbers are used rather than the actual labels because the length of the longest label (13) is greater than the default that is set by the maximum label length option (MAXLEN=12). You can display labels rather than the group numbers by specifying a MAXLEN= value equal to the maximum group label length. So if you update the MAXLEN=13 then this should resolve the issue.

Thanks,
Jag
KlausKaspar
Calcite | Level 5

Thank you! Specifying MAXLEN solved the problem!

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
  • 3 replies
  • 930 views
  • 1 like
  • 2 in conversation