BookmarkSubscribeRSS Feed
deleted_user
Not applicable
ods rtf text = "^S={font_size=14pt font_face='Times Roman' font_weight=bold just=l background=#FFFFFF}OR Time";

The top margin is quite wide. What code do I use to adjust this top margin?

Thanks,
S
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
If you are using SAS 9.1.3 or SAS 9.2, then (per this Tech Support note) you should be able to use the System Options to alter the RTF margins starting in SAS 9.1:
[pre]
options topmargin=.5in bottommargin=.5in;
[/pre]

http://support.sas.com/kb/5/468.html (the note is reporting that a problem with using options did not work in SAS 8.2, but was fixed in SAS 9.1)

If you are using SAS 8.2 or want to use a custom style template for changing margins, then this Tech Support note outlines the methods that you would use via style template:
http://support.sas.com/kb/24/033.html

Do remember that ODS RTF creates RTF control strings that are designed to work best with Microsoft Word. So if you are creating RTF output and using some other RTF viewer (OpenOffice, ClarisWorks, etc), then you may have to work with Tech Support if the RTF control strings for margins are not respected by those viewers.

cynthia

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch 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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 1201 views
  • 0 likes
  • 2 in conversation