BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
imcbczm
Obsidian | Level 7

Hi,

I am using proc report and ODS RTF to report a table. When there are more than two pages, the table header on the pages except the first page can not be altered. I am wondering if there is any option to allow us to do that.

Example:

These codes will generate a RTF file with column " Smoking", the table header "Smoking" is shown on every page. I just want it appears only on the first page. Any idea?

ods rtf file="testRTF.rtf";

proc report data=sashelp.heart(obs=100) nowd

style(report) = {cellpadding = 1.25pt cellspacing = 2pt frame = hsides rules = groups just=center};

column smoking;

define smoking/ display order=data;

run;

ods rtf close;

thanks,

Z

1 ACCEPTED SOLUTION

Accepted Solutions
imcbczm
Obsidian | Level 7

Somehow if replace "ods rtf" with "ods tagsets.rtf" will solve the issue, but the report will be slightly differently with other functions, such as title or footnote.

thanks,

Zhengming

View solution in original post

2 REPLIES 2
ballardw
Super User

Unless you have a multitude of tables you need this for it may be easier to turn off the "Repeat Header Rows" in Word (currently buried in Table >Layout), or equivalent in other viewrs.

It may be possible to find the RTF codes for that but incorporating that code may be quite a chore.

imcbczm
Obsidian | Level 7

Somehow if replace "ods rtf" with "ods tagsets.rtf" will solve the issue, but the report will be slightly differently with other functions, such as title or footnote.

thanks,

Zhengming

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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