The SAS Output Delivery System and reporting techniques

What does HEADERY do?

Accepted Solution Solved
Reply
Respected Advisor
Posts: 3,777
Accepted Solution

What does HEADERY do?

Can someone show me an example where changing these values has an effect and point out what changed?

HEADERY= and FOOTERY= Options We have had requests for control over the options that determine the locations of the header and footer information. There are a number of considerations and computations that determine the value. If you are a savvy user, specify the locations like this:

ods rtf file="test.rtf" headery=320 footery=1100 ;

There is no checking on the validity of these values. If they are specified, they are used. The values are in twips. To remove the use of the options, issue

ods rtf headery=0 footery=0;


Accepted Solutions
Solution
‎12-13-2011 09:41 PM
SAS Super FREQ
Posts: 8,744

Re: What does HEADERY do?

Hi:

  As explained in this note,

http://support.sas.com/kb/24/168.html

HEADERY and FOOTERY specify header and footer margins (different from page/document margins). The number you specify is in TWIPS -- A twip is specified as 1/20 of a printer's point. There are about 1,440 twips to an inch. So, if you run this code and then open the RTF file with Word and open the Header window, you should see that the Header and Footer margins are set at 2" when the value is 2880 and at 1/2 inch when the value is 720. But to see the impact of the change, you have to go to Insert --> Header and then go to Edit Header and look at the settings for Header and Footer margins. Otherwise, you don't see the change.

cynthia

options nodate nonumber
        topmargin=1in bottommargin=1in;
        
ods listing close;
ods rtf file="c:\temp\h720_f720.rtf" headery=720 footery=720;
  proc print data=sashelp.class;
    title 'where is title headery=720';
    footnote 'where is footnote footery=720';
  run;
ods rtf close;
     
ods rtf file="c:\temp\h2880_f2880.rtf" headery=2880 footery=2880;
  proc print data=sashelp.class;
    title 'where is title headery=2880';
    footnote 'where is footnote footery=2880';
  run;
ods rtf close;

ods rtf headery=0 footery=0;

View solution in original post


All Replies
Solution
‎12-13-2011 09:41 PM
SAS Super FREQ
Posts: 8,744

Re: What does HEADERY do?

Hi:

  As explained in this note,

http://support.sas.com/kb/24/168.html

HEADERY and FOOTERY specify header and footer margins (different from page/document margins). The number you specify is in TWIPS -- A twip is specified as 1/20 of a printer's point. There are about 1,440 twips to an inch. So, if you run this code and then open the RTF file with Word and open the Header window, you should see that the Header and Footer margins are set at 2" when the value is 2880 and at 1/2 inch when the value is 720. But to see the impact of the change, you have to go to Insert --> Header and then go to Edit Header and look at the settings for Header and Footer margins. Otherwise, you don't see the change.

cynthia

options nodate nonumber
        topmargin=1in bottommargin=1in;
        
ods listing close;
ods rtf file="c:\temp\h720_f720.rtf" headery=720 footery=720;
  proc print data=sashelp.class;
    title 'where is title headery=720';
    footnote 'where is footnote footery=720';
  run;
ods rtf close;
     
ods rtf file="c:\temp\h2880_f2880.rtf" headery=2880 footery=2880;
  proc print data=sashelp.class;
    title 'where is title headery=2880';
    footnote 'where is footnote footery=2880';
  run;
ods rtf close;

ods rtf headery=0 footery=0;

Respected Advisor
Posts: 3,777

Re: What does HEADERY do?

Thank you very much.  You should add this example to the documentation.

☑ This topic is solved.

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

Discussion stats
  • 2 replies
  • 744 views
  • 0 likes
  • 2 in conversation