BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
LindaH1120
Fluorite | Level 6

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!

1 ACCEPTED SOLUTION

Accepted Solutions
5 REPLIES 5
Reeza
Super User

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;

data_null__
Jade | Level 19

Try NOGTITLE option in ODS statement.

LindaH1120
Fluorite | Level 6

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

Is there an option for the footer?  like nogfooter? 

LindaH1120
Fluorite | Level 6

I got it nogfootnote!  

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

Linda

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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