The SAS Output Delivery System and reporting techniques

Remove the header of a ods rtf

Accepted Solution Solved
Reply
Contributor
Posts: 46
Accepted Solution

Remove the header of a ods rtf

Hello, everbody !

I'd like to know if there is a option or something like that, to remove all header of ODS RTF (the space of the header), I'm trying to make a report without the header. Is it possible ?

tk's in advanced !!


Accepted Solutions
Solution
‎05-10-2012 06:50 PM
SAS Super FREQ
Posts: 8,864

Re: Remove the header of a ods rtf

Hi:

  I believe this can be done in ODS RTF by changing the HEADERY and FOOTERY options. They are described here: http://support.sas.com/kb/24/168.html

  I do not think that the new TAGSETS.RTF will use HEADERY and FOOTERY options. For more help with HEADERY and FOOTERY, you might want to work with Tech Support. By default, SAS puts the TITLE from the TITLE statement into the header of your ODS RTF document.

  If I turn off the title and make the HEADERY and FOOTERY numbers really small, then I can get output as shown in the attached screenshot. Program below.

cynthia

options topmargin=.25in bottommargin=.25in

        leftmargin=1in rightmargin=1in;

title;

ods rtf file='c:\temp\classicrtf_smallmargin.rtf' headery=1 footery=1;

  proc print data=sashelp.class;

  run;

ods _all_ close;


rtf_headery_footery.png

View solution in original post


All Replies
Solution
‎05-10-2012 06:50 PM
SAS Super FREQ
Posts: 8,864

Re: Remove the header of a ods rtf

Hi:

  I believe this can be done in ODS RTF by changing the HEADERY and FOOTERY options. They are described here: http://support.sas.com/kb/24/168.html

  I do not think that the new TAGSETS.RTF will use HEADERY and FOOTERY options. For more help with HEADERY and FOOTERY, you might want to work with Tech Support. By default, SAS puts the TITLE from the TITLE statement into the header of your ODS RTF document.

  If I turn off the title and make the HEADERY and FOOTERY numbers really small, then I can get output as shown in the attached screenshot. Program below.

cynthia

options topmargin=.25in bottommargin=.25in

        leftmargin=1in rightmargin=1in;

title;

ods rtf file='c:\temp\classicrtf_smallmargin.rtf' headery=1 footery=1;

  proc print data=sashelp.class;

  run;

ods _all_ close;


rtf_headery_footery.png
Contributor
Posts: 46

Re: Remove the header of a ods rtf

Posted in reply to Cynthia_sas

Tk's Cynthia!

I put headery=1 footery=1, it's perfect !

New Contributor
Posts: 4

Re: Remove the header of a ods rtf

Posted in reply to Cynthia_sas

Hi Cynthia,

 

Do you know of a way for me to keep a letterhead across all pages of an rtf, but to also somehow activate the bodytitle option so that my procedure titles appear in the body of the rtf?

 

If I use the bodytitle option in the ods rtf file = '....' line, the procedure titles end up overwriting the letter head. 

 

Any ideas?

 

Thank you,

Chris

 

 

New User
Posts: 1

Re: Remove the header of a ods rtf

Though the option above works, the simpler solution is to include the BODYTITLE option in the ODS RTF statement.

☑ This topic is solved.

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

Discussion stats
  • 4 replies
  • 3413 views
  • 0 likes
  • 4 in conversation