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;
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.

SAS Training: Just a Click Away

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

Browse our catalog!

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