BookmarkSubscribeRSS Feed
Calcite | Level 5

I'm using SGPANEL to create a graph. I'm using ODS to output into a PDF file.  And I'm working in SAS EG.

The problem I'm running into is the variable labels for the panels are being cut off. I want to wrap the labels to the next line. I have tried various combinations of attribute options and split options on different statement lines, but nothing is working.


Here is the original code -

proc sgpanel data=here;
panelBy Var / columns=4 novarname;
vbarparm category=Treat_num response=Mean / limitlower=LCLM limitupper=UCLM;
format Treat_num Treat_numfmt.;


The variable VAR has values like
This is a label
This is a really really long label
This label fits
This really really long label gets cut off and does not wrap


How can I the information for the variable VAR to wrap, when necessary, for each of the columns when they are output?  





Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2 in conversation