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

Hi,

I would like to have header and footer on every page of RTF document and also another header and footer for table on that document.
Now I am using ODS RTF with no bodytitle and proc report and I cant figure out how to achieve desired output.

It should look like the file in the attachment...

 

Thanks for any advice...

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Thats not a standard output then.  All the CSR output files I have seen show the same headers on every page, in case one is printed off on its own, you have no way of identifying it.  I wouldn't recommend doing output that way.

 

However, yes, if you do proceed, then its likely ods text will be the simplest method.

View solution in original post

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Thats a standard CSR output, you can get that with titles and footnotes easily:

ods escapechar="^";

title1 "^s={just=l}Company^s{just=r}Page ^{thispage} of ^{lastpage}";
title2 "^s={just=l}Protocol no: xxx^s={just=r}Data cutoff date: yyyymmdd";
title4 j=c "Table no";
title5 j=c "Table description";
title6 j=c "Population";

Notice that I use inline formatting to adjust the alignment and add in some rtf control words to get page.  Examples:

https://www.lexjansen.com/pharmasug/2006/Posters/PO04.pdf

Matyas
Fluorite | Level 6

The problem for me is that I want to have same header and footer for each page in document, which I can handle with title and footnote, on top of that I want to have header and footer for table, but I dont want to show these on every page but only before and after table.

Maybe the ods rtf text could help, as I see in your attached paper.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Thats not a standard output then.  All the CSR output files I have seen show the same headers on every page, in case one is printed off on its own, you have no way of identifying it.  I wouldn't recommend doing output that way.

 

However, yes, if you do proceed, then its likely ods text will be the simplest method.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 4331 views
  • 0 likes
  • 2 in conversation