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!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 441 views
  • 1 like
  • 2 in conversation