The SAS Output Delivery System and reporting techniques

vertical and horizontal header format in rtf

Reply
Occasional Contributor
Posts: 10

vertical and horizontal header format in rtf

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

image.png

SAS Super FREQ
Posts: 8,864

Re: vertical and horizontal header format in rtf

Posted in reply to reedwinter

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

Occasional Contributor
Posts: 10

Re: vertical and horizontal header format in rtf

Posted in reply to Cynthia_sas

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?

SAS Super FREQ
Posts: 8,864

Re: vertical and horizontal header format in rtf

Posted in reply to reedwinter

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;

Ask a Question
Discussion stats
  • 3 replies
  • 467 views
  • 0 likes
  • 2 in conversation