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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.