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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 3 replies
  • 1676 views
  • 0 likes
  • 2 in conversation