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

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;

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

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

2 REPLIES 2
Cynthia_sas
Diamond | Level 26

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;

data_null__
Jade | Level 19

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 4277 views
  • 1 like
  • 2 in conversation