The SAS Output Delivery System and reporting techniques

Footnote when using ODS RTF with PROC GHART

Reply
Occasional Contributor
Posts: 10

Footnote when using ODS RTF with PROC GHART

I ma using ODS RTF along with multiple PROC GCHART steps to output 10-20 graphs to a rtf file. I would like to apply a footnote to the rtf file.

However, if I use a simple FOOTNOTE statement, the footnote is applied to each graph instead of being applied globally to the document. Any suggestions on how I can accomplish this?
SAS Super FREQ
Posts: 8,864

Re: Footnote when using ODS RTF with PROC GHART

Hi:
Look at the NOGTITLE and NOGFOOTNOTE options for ODS RTF -- they tell ODS that the titles and footnotes should be under the control of RTF and not placed in the SAS/GRAPH image:
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002233360.htm

cynthia
Super User
Posts: 10,023

Re: Footnote when using ODS RTF with PROC GHART

Posted in reply to Cynthia_sas
Hi.Cynthia.
There is another resolution which sas-susport has mentioned.

Not use 'footnote' statement.
And add a 'proc report' at the end of the 'proc gchart' to print a footnote.


Ksharp
SAS Super FREQ
Posts: 8,864

Re: Footnote when using ODS RTF with PROC GHART

Yes, that is another solution. I prefer to move from the simple solution (such as using an OPTION) to the complex (a new PROC REPORT step) because the OPTION method has no consequence to the CONTENTS page (if one is generated) -- but with the extra PROC REPORT method -- an extra "CONTENTS" node would be generated.

Another method is to use ODS TEXT= to place text after the GCHART -- the only issue with this is that the text string would not go into the footer area of the document -- which may be what is desired.

I used to tell my beginning students that if you asked 3 SAS programmers how to do something you'd get 6 different solutions.

cynthia
Super User
Posts: 10,023

Re: Footnote when using ODS RTF with PROC GHART

Posted in reply to Cynthia_sas
Hi.Cynthia.
I am surprised that you are still not go to sleep ,at this time it is nearly to approach mid-night in U.S.
SAS Super FREQ
Posts: 8,864

Re: Footnote when using ODS RTF with PROC GHART

Only past midnight in the Eastern Time Zone. I'm in Mountain time and right now, it's only 10:30 pm. Still have a mystery to work on tonight.

cynthia
Occasional Contributor
Posts: 10

Re: Footnote when using ODS RTF with PROC GHART

Posted in reply to Cynthia_sas
Thank you, this helped me get what I needed! If anyone's interested in what I did:

I used GTITLE and NOGFOOTITLE in the ODS RTF statment so that my titles went on the individual graphs while the footnotes went in the footer of the rtf file.

However, this ended up also putting the titles in the headers of the rtf file; so I used blank "TITLE1;" statements to clear the saved titles every time I went to a new page with ODS STARTPAGE=NOW;
Ask a Question
Discussion stats
  • 6 replies
  • 222 views
  • 0 likes
  • 3 in conversation