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!
Try NOGTITLE option in ODS statement.
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;
Try NOGTITLE option in ODS statement.
That works perfectly for the title! It is now in the header section. Awesome!
Is there an option for the footer? like nogfooter?
I got it nogfootnote!
Thank you very much data _null_; I love the alias!
Linda
close, nogfootnote
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.