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...
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.
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:
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.
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.