BookmarkSubscribeRSS Feed
AllenEBingham
Calcite | Level 5
I've successfully used the RTF destination and sent section data to it to set the Header and Footer margin in the RTF output file, as follows:

ods RTF sectiondata='\headery720\footery576';

this corresponds to a 0.5 in header margin and a 0.4 in footer margin.

But when I try to do the same with the tagsets.RTF destination, via the following syntax:

ods tagsets.RTF options(SECT=''\headery720\footery576');

the end result is a line in the RTF file that sets the header and footer margin correctly ... but then it is immediately followed by a line generated by the tagsets, that resets the header and footer margin to 1440 (i.e. 1 in which is the top and bottom margin settings).

I note that in the tagsets.RTF the following "offending" language is probably the culprit:

put $sect_data;
put NL;
put "\headery" TOPMARGIN "\footery" BOTTOMMARGIN;
put "\marglsxn" LEFTMARGIN "\margrsxn" RIGHTMARGIN;
put "\margtsxn" TOPMARGIN "\margbsxn" BOTTOMMARGIN;
set $pagecols PAGE_COLUMNS /if exists( PAGE_COLUMNS);
put NL;

which as I guessed using the TOPMARGIN AND BOTTOMMARGIN values to 'reset' the header and footer margins.

I really like some of the features of the tagsets.RTF destination over those of the RTF destination --- and as such would really like to use it ... but w/o being able to correctly set the header and footer margins I can't change yet.

Any workarounds/solutions?
4 REPLIES 4
Ksharp
Super User
Hi.
There are several System Options can adjust the margin of RTF file.


[pre]
options topmargin=4 cm bottommargin=4 cm leftmargin=0 cm rightmargin=0 cm nodate nonumber center ;
[/pre]


Ksharp
AllenEBingham
Calcite | Level 5
Those do not impact the header and footer margins ... which are the distance away from the top and bottom (respectively) that the running headers and footers in an RTF (and/or MSWord) documents run. The main text of the document's distance from the edge of the paper is controlled by the options you list. As far as I know there isn't an equivalent options setting in SAS that directly relates to the RTF/MSWord document header/footer margin.

That's why I'm used the direct SECTIONDATA "option" in the ODS RTF statement (and attempted to use the SECT= option in the ODS tagset.RTF statement) to pass along a direct string to the RTF DOCUMENT that would set the header/footer margins.
Ksharp
Super User
Hi.
I am afraid that you need to change Microsoft WORD 's options.

Start->Open Word->File->Page Setup->Format-> 'Set' Page_brow and' Page_foot to 0 cm.

Ksharp
Cynthia_sas
SAS Super FREQ
Hi:
I'd suggest you open a track with Tech Support. If your HEADERY and FOOTERY are being reset by control strings from the tagset template, then Tech Support could either work with you on a control string method to set the HEADERY and FOOTERY or they could work with the TAGSETS.RTF developer to find out whether there is an updated tagset template that does not have this behavior.

To open a track with Tech Support, fill out the form at this link:
http://support.sas.com/ctx/supportform/createForm

cynthia

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
  • 4 replies
  • 1750 views
  • 0 likes
  • 3 in conversation