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;
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;
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;
Thank you very much. You should add this example to the documentation.
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.
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.