The SAS Output Delivery System and reporting techniques

Different header and footer for RTF document and for table

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

Different header and footer for RTF document and for table

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


Accepted Solutions
Solution
‎06-27-2018 05:05 AM
Super User
Super User
Posts: 9,855

Re: Different header and footer for RTF document and for table

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


All Replies
Super User
Super User
Posts: 9,855

Re: Different header and footer for RTF document and for table

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

Occasional Contributor
Posts: 9

Re: Different header and footer for RTF document and for table

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.

Solution
‎06-27-2018 05:05 AM
Super User
Super User
Posts: 9,855

Re: Different header and footer for RTF document and for table

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.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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