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
SAS Super FREQ

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
SAS Super FREQ

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.

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
  • 2 replies
  • 3109 views
  • 1 like
  • 2 in conversation