<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ODS RTF MARGINS 9.13 in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-MARGINS-9-13/m-p/44992#M5954</link>
    <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
I tried your suggestions, plus the ones in the paper and from the website link. It seems to be more of a MSword issue. Once that file is replaced, then I will test again.&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your help and examples.&lt;BR /&gt;
&lt;BR /&gt;
Karen S</description>
    <pubDate>Tue, 07 Dec 2010 14:34:00 GMT</pubDate>
    <dc:creator>KarenES</dc:creator>
    <dc:date>2010-12-07T14:34:00Z</dc:date>
    <item>
      <title>ODS RTF MARGINS 9.13</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-MARGINS-9-13/m-p/44990#M5952</link>
      <description>My ODS RTF continues to provide &lt;B&gt;0.05&lt;/B&gt; instead of 0.5 margin widths. I have tried to change this through proc template and options with no success. The top and bottom margins work just fine and I can change them as needed.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Below is the template code (from p. 432 &lt;U&gt;ODS Basics and Beyond&lt;/U&gt;)  &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Proc template;&lt;BR /&gt;
	Define style RTFmargins;&lt;BR /&gt;
	Parent = styles.rtf;&lt;BR /&gt;
	Style body from body/&lt;BR /&gt;
		bottommargin = .5in Topmargin=.5in leftmargin=.5in rightmargin=.5in;&lt;BR /&gt;
	End;&lt;BR /&gt;
	run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Here is the code used to create the RTF. I am using WORD 2007 to open and edit the RTF.&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ODS Escapechar = '~';&lt;BR /&gt;
&lt;BR /&gt;
ODS RTF FILE= 'S:\...\item frequencies.rtf' &lt;BR /&gt;
			startpage=no keepn contents=yes TOC_DATA Style=journal sasdate;&lt;BR /&gt;
			ODS noptitle;&lt;BR /&gt;
			ods proclabel ' ';&lt;BR /&gt;
			footnote justify=center 'Page ~{thispage} of ~{lastpage}';&lt;BR /&gt;
&lt;BR /&gt;
options nonumber /*supresses automatic page number at top of output*/&lt;BR /&gt;
		topmargin = '.5in' bottommargin = '.5in' leftmargin = '1in' rightmargin = '1in';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance for any assistance,&lt;BR /&gt;
Karen</description>
      <pubDate>Mon, 06 Dec 2010 17:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-MARGINS-9-13/m-p/44990#M5952</guid>
      <dc:creator>KarenES</dc:creator>
      <dc:date>2010-12-06T17:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF MARGINS 9.13</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-MARGINS-9-13/m-p/44991#M5953</link>
      <description>Hi:&lt;BR /&gt;
  I do not have SAS 9.1.3 or Office 2007 to test with anymore, but either of these 3 techniques works for me in SAS 9.2 with Office 2007:&lt;BR /&gt;
   &lt;BR /&gt;
Basic) Just use SAS Options -- in my code below, I use options with the JOURNAL style (using SAS Options directly with RTF did not work in SAS 8, for example, you had to make a template change)&lt;BR /&gt;
         &lt;BR /&gt;
1) change the template to have margin values and do NOT use the OPTIONS for margin&lt;BR /&gt;
       &lt;BR /&gt;
2) Explicitly _UNDEF_ the margin values in the template and DO use SAS OPTIONS for margin values in my code&lt;BR /&gt;
&lt;BR /&gt;
All of these methods are shown below. All the code in our ODS book was tested in SAS 9.2 -- we did not go back and test code in SAS 9.1.3, but I believe that if these methods do not work in SAS 9.1.3, that at least the #1 and #2 method should work. Lauren wrote this paper for SAS 8.2 and early SAS 9 that outlined the #1 and #2 technique:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/125-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/125-29.pdf&lt;/A&gt;&lt;BR /&gt;
                   &lt;BR /&gt;
Perhaps you're running into something related to this issue???&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/10/112.html" target="_blank"&gt;http://support.sas.com/kb/10/112.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Otherwise, if you run program #1 and #2 and neither of them result in the desired margins (you're still getting a margin of .05)  then you may have a corrupted NORMAL.DOT file or some other problem with Microsoft Word. &lt;BR /&gt;
&lt;BR /&gt;
In that case, you may want to work with Tech Support on this issue. (Note, in the code below, I made my margins 4 distinct values for #1 and #2, each time, so you could quickly see each margin's value in the Word Page Layout window.)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
** Basic Method -- use ONLY options;&lt;BR /&gt;
** make sure SAS options are not interfering and are set to;&lt;BR /&gt;
** something DIFFERENT than I will put in the template;&lt;BR /&gt;
options bottommargin = 1.0in &lt;BR /&gt;
        Topmargin=1.0in &lt;BR /&gt;
        leftmargin=1.0in &lt;BR /&gt;
        rightmargin=1.0in;&lt;BR /&gt;
                     &lt;BR /&gt;
ODS Escapechar = '~';&lt;BR /&gt;
                     &lt;BR /&gt;
ODS RTF FILE= 'c:\temp\testmargin_base.rtf' &lt;BR /&gt;
    startpage=no keepn contents=yes TOC_DATA Style=journal sasdate;&lt;BR /&gt;
ODS noptitle;&lt;BR /&gt;
ods proclabel ' ';&lt;BR /&gt;
footnote justify=center 'Page ~{thispage} of ~{lastpage}';&lt;BR /&gt;
                   &lt;BR /&gt;
options nonumber;&lt;BR /&gt;
                      &lt;BR /&gt;
proc print data=sashelp.shoes(obs=200);&lt;BR /&gt;
title 'Base) use Options and style=journal';&lt;BR /&gt;
title2 'to check "baseline" for margins with just SAS options';&lt;BR /&gt;
  var region product sales;&lt;BR /&gt;
run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
 &lt;BR /&gt;
                             &lt;BR /&gt;
*** Method #1 -- put margin values in the style template and ONLY;&lt;BR /&gt;
***              in the style template;&lt;BR /&gt;
ods path work.tmp(update) sasuser.templat(update)&lt;BR /&gt;
         sashelp.tmplmst(read);&lt;BR /&gt;
                         &lt;BR /&gt;
Proc template;&lt;BR /&gt;
  Define style RTFmargins;&lt;BR /&gt;
  Parent = styles.rtf;&lt;BR /&gt;
  Style body from body/&lt;BR /&gt;
        bottommargin = 1.5in &lt;BR /&gt;
        Topmargin=1.15in &lt;BR /&gt;
        leftmargin=1.25in &lt;BR /&gt;
        rightmargin=1.35in;&lt;BR /&gt;
  End;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
                                         &lt;BR /&gt;
ODS Escapechar = '~';&lt;BR /&gt;
               &lt;BR /&gt;
ODS RTF FILE= 'c:\temp\testmargin1.rtf' &lt;BR /&gt;
    startpage=no keepn contents=yes TOC_DATA Style=rtfmargins sasdate;&lt;BR /&gt;
ODS noptitle;&lt;BR /&gt;
ods proclabel ' ';&lt;BR /&gt;
footnote justify=center 'Page ~{thispage} of ~{lastpage}';&lt;BR /&gt;
                         &lt;BR /&gt;
options nonumber;&lt;BR /&gt;
                         &lt;BR /&gt;
proc print data=sashelp.shoes(obs=200);&lt;BR /&gt;
title '1) change margins in template';&lt;BR /&gt;
title2 'check page layout to see "different" margin sizes';&lt;BR /&gt;
  var region product sales;&lt;BR /&gt;
run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
          &lt;BR /&gt;
                      &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
*** Method #2 -- essentially turn off margin values in the template;&lt;BR /&gt;
***              with _UNDEF_ and specify margins in SAS Options;&lt;BR /&gt;
ods path work.tmp(update) sasuser.templat(update)&lt;BR /&gt;
         sashelp.tmplmst(read);&lt;BR /&gt;
                     &lt;BR /&gt;
Proc template;&lt;BR /&gt;
  Define style RTF_undef;&lt;BR /&gt;
  Parent = styles.rtf;&lt;BR /&gt;
  Style body from body/&lt;BR /&gt;
        bottommargin = _undef_ &lt;BR /&gt;
        Topmargin=_undef_ &lt;BR /&gt;
        leftmargin=_undef_ &lt;BR /&gt;
        rightmargin=_undef_;&lt;BR /&gt;
  End;&lt;BR /&gt;
run;&lt;BR /&gt;
                 &lt;BR /&gt;
** again, use options to make each margin a unique size;&lt;BR /&gt;
options bottommargin = .5in &lt;BR /&gt;
        Topmargin=1.5in &lt;BR /&gt;
        leftmargin=2.0in &lt;BR /&gt;
        rightmargin=2.5in;&lt;BR /&gt;
&lt;BR /&gt;
                      &lt;BR /&gt;
ODS Escapechar = '~';&lt;BR /&gt;
            &lt;BR /&gt;
ODS RTF FILE= 'c:\temp\testmargin2.rtf' &lt;BR /&gt;
    startpage=no keepn contents=yes TOC_DATA Style=rtf_undef sasdate;&lt;BR /&gt;
ODS noptitle;&lt;BR /&gt;
ods proclabel ' ';&lt;BR /&gt;
footnote justify=center 'Page ~{thispage} of ~{lastpage}';&lt;BR /&gt;
                &lt;BR /&gt;
options nonumber;&lt;BR /&gt;
            &lt;BR /&gt;
proc print data=sashelp.shoes(obs=200);&lt;BR /&gt;
title '2) change margins in options with _undef_ in template';&lt;BR /&gt;
title2 'check page layout to see "different" margin sizes';&lt;BR /&gt;
  var region product sales;&lt;BR /&gt;
run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 06 Dec 2010 18:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-MARGINS-9-13/m-p/44991#M5953</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-12-06T18:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF MARGINS 9.13</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-MARGINS-9-13/m-p/44992#M5954</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
I tried your suggestions, plus the ones in the paper and from the website link. It seems to be more of a MSword issue. Once that file is replaced, then I will test again.&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your help and examples.&lt;BR /&gt;
&lt;BR /&gt;
Karen S</description>
      <pubDate>Tue, 07 Dec 2010 14:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-MARGINS-9-13/m-p/44992#M5954</guid>
      <dc:creator>KarenES</dc:creator>
      <dc:date>2010-12-07T14:34:00Z</dc:date>
    </item>
  </channel>
</rss>

