BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BruceBrad
Lapis Lazuli | Level 10

I'm tabulating something like:

class catvar1 catvar2;

var contvar;

label contvar "A very very very very long label";

table mean*contvar*catvar1,catvar2;

Can I get the long label to wrap? I'm currently outputing to ODS RTF, where it doesn't wrap. I know that I can output to ODS markup tagset=excelXP and open the sheet up in Excel (where the labels will wrap). However, I have a lot of tables, and would prefer to go (almost) straight from SAS to a Word (or RTF) file.

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

Hi

Have a go at using inline formatting, see example below:

ods escapechar="~";
proc tabulate data=sashelp.cars;
  class origin type;
  table
    type, origin
  ;
  label
    type =
"Type of the cars~{NEWLINE}as specified by~{NEWLINE}the car manufacturer"
    origin =
"Origin of the cars~{NEWLINE}where most parts are~{NEWLINE}made and assembled"
  ;
run;

View solution in original post

1 REPLY 1
BrunoMueller
SAS Super FREQ

Hi

Have a go at using inline formatting, see example below:

ods escapechar="~";
proc tabulate data=sashelp.cars;
  class origin type;
  table
    type, origin
  ;
  label
    type =
"Type of the cars~{NEWLINE}as specified by~{NEWLINE}the car manufacturer"
    origin =
"Origin of the cars~{NEWLINE}where most parts are~{NEWLINE}made and assembled"
  ;
run;

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2279 views
  • 0 likes
  • 2 in conversation