BookmarkSubscribeRSS Feed
reedwinter
Calcite | Level 5

Is there a way to create header like this in rtf?

image.png

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

  Sorry, your link didn't work for me. It took me to Google. If you go to "Use advanced editor" in the upper right corner of the Reply screen, you can post an image.

  As for the question of vertical headers in RTF, what do you mean? Look on page 5 of this paper (http://www2.sas.com/proceedings/sugi30/091-30.pdf) and if these are the type of vertical headers you mean, then you might be interested in reading the paper author's description of how she achieved these headers.

cynthia

reedwinter
Calcite | Level 5

Hi:

Thanks for response.

I re-edited it. Hopefully you can see the image now.

I know how to make vertical headers, however, I want an extra spanned header  with horizontal text. Can I do it with sas?

Cynthia_sas
SAS Super FREQ

Hi:

  Well, it depends on what procedure you're using in the first place (PRINT, REPORT, TABULATE, MEANS, FREQ, or ???) and how you are achieving the vertical rotation.

  For example, there are ways in PROC REPORT to get spanning headers, but it may or may not work with the method you use to make the headers vertical. In my code, I just used the PROC REPORT split character to make vertical headers (not rotated).

cynthia

ods rtf file='c:\temp\vertical.rtf';
      
proc report data=sashelp.class nowd split='*';
  column name sex ('Spanning Vertical' age height weight);
  define name / order;
  define sex / display;
  define age / display 'A*g*e';
  define height / display 'H*e*i*g*h*t';
  define weight / display 'W*e*i*g*h*t';
run;

ods rtf close;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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