Data visualization with SAS programming

Gchart - I want titles/footnotes in the RTF, not inside gchart section

Accepted Solution Solved
Reply
Contributor
Posts: 31
Accepted Solution

Gchart - I want titles/footnotes in the RTF, not inside gchart section

Hi again!  Whenever I output to RTF and have a proc gchart, the titles and the footers go inside the boundries of the gchart output.  How do I keep the header/footer in the RTF header and footer?  My page numbering is not working either.  However, if I just have a proc report in the RTF, the header and footers are perfectly placed.  Just run and comment out the proc gchart section to see.

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

ods rtf file="c:\temp\gchart_procreport.rtf"  startpage=no ;

title 'Where is the Title';

footnote 'Where is the footnote' j=C '^{pageof}';

proc gchart data=sashelp.class;

  vbar age /

  group=sex;

run;

proc print data=sashelp.class ;

run;

ods rtf close;

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

ods rtf file="c:\temp\procReport.rtf"  startpage=no;

title 'Where is the Title';

footnote 'Where is the footnote' j=C '^{pageof}';

proc print data=sashelp.class ;

run;

ods rtf close;

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

Thanks so much for your help!


Accepted Solutions
Solution
‎05-22-2012 01:27 PM
Respected Advisor
Posts: 3,867

Re: Gchart - I want titles/footnotes in the RTF, not inside gchart section

Posted in reply to LindaH1120

Try NOGTITLE option in ODS statement.

View solution in original post


All Replies
Super User
Posts: 23,992

Re: Gchart - I want titles/footnotes in the RTF, not inside gchart section

Posted in reply to LindaH1120

Try the nogtitle option in your ods rtf statement.

ods rtf file="c:\temp\gchart_procreport.rtf"  startpage=no NOGTITLE;

title 'Where is the Title';

footnote 'Where is the footnote' j=C '^{pageof}';

proc gchart data=sashelp.class;

  vbar age /

  group=sex;

run;

proc print data=sashelp.class ;

run;

ods rtf close;

Solution
‎05-22-2012 01:27 PM
Respected Advisor
Posts: 3,867

Re: Gchart - I want titles/footnotes in the RTF, not inside gchart section

Posted in reply to LindaH1120

Try NOGTITLE option in ODS statement.

Contributor
Posts: 31

Re: Gchart - I want titles/footnotes in the RTF, not inside gchart section

Posted in reply to data_null__

That works perfectly for the title! It is now in the header section.  Awesome!

Is there an option for the footer?  like nogfooter? 

Contributor
Posts: 31

Re: Gchart - I want titles/footnotes in the RTF, not inside gchart section

Posted in reply to LindaH1120

I got it nogfootnote!  

Thank you very much data _null_;  I love the alias!

Linda

Super User
Posts: 23,992

Re: Gchart - I want titles/footnotes in the RTF, not inside gchart section

Posted in reply to LindaH1120

close, nogfootnote

🔒 This topic is solved and locked.

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

Discussion stats
  • 5 replies
  • 664 views
  • 3 likes
  • 3 in conversation