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,641

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;

View solution in original post

Attachment

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

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;

Attachment
Contributor
Posts: 46

Re: Remove the header of a ods rtf

Tk's Cynthia!

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

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.

Post a Question
Discussion Stats
  • 3 replies
  • 2225 views
  • 0 likes
  • 3 in conversation