<?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: Remove extraneous headers and footers in RTF output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411282#M19809</link>
    <description>&lt;P&gt;Thank your for your reply, Art.&amp;nbsp; That's interesting, and it does fix the header-footer problems, but alas, it changes the look of the table and I it to be in journal style.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Numbergirl&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 18:03:52 GMT</pubDate>
    <dc:creator>numbergirl</dc:creator>
    <dc:date>2017-11-07T18:03:52Z</dc:date>
    <item>
      <title>Remove extraneous headers and footers in RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411193#M19804</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The code below won't run properly without having to exit SAS completely and starting a new SAS session.&amp;nbsp;&amp;nbsp;Running the file the first time produces correct output.&amp;nbsp; Running the file a second time results&amp;nbsp;in the&amp;nbsp;table in the attached&amp;nbsp;TEMP.RTF file.&amp;nbsp; Extra header and footer lines are&amp;nbsp;displayed and the remaining ones are misaligned; 'Organization' should be on the same line as 'Page 1 of 1', and 'My program' should be on the same line as 'Date 1.'&amp;nbsp;&amp;nbsp;&amp;nbsp; The SAS code used is as Follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;title1 j=left font='Arial' 'Organization' j=right "Page ~{pageof}";
title2 j=left font='Arial' 'Study';
footnote1 j=left font='Arial' 'My program' j=right "Date 1";
footnote2 j=right font='Arial' "Date 2";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;options formchar="|____|+|___+=|_/\&amp;lt;&amp;gt;*" pageno=1 nonumber nodate orientation=landscape center;
ods listing close;
ods rtf file="&amp;amp;outpath.\filename.rtf"  style= journal;  
ods escapechar='~';
 ***;

proc report data=mydat nowindows split='^' style(column)={asis=on} 
        style(report)={font=('Arial',9.5pt,bold italic) 
                       pretext="Table 1"};
	column group person enrolled startdt enddt variable3 variable4 comments;
	define group / display center id 'group' style=[CellWidth=11%];
	define person / display center id 'person' style=[CellWidth=10%];
	define enrolled / display center 'enrolled' style=[CellWidth=11%];
	define startdt / display center 'Study Start Date' style=[CellWidth=11%];
	define enddt / display center 'Study End Date' style=[CellWidth=10%];
	define variable3 / display center 'Variable 3' style=[CellWidth=10%];
	define variable4 / display center 'Variable 4' style=[CellWidth=15%];
	define comments / display center 'Comments' style=[CellWidth=20%];
run;

ods rtf close;
ods listing;
title; footnote;&lt;/PRE&gt;&lt;P&gt;Thank you in advance for any ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Numbergirl&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 14:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411193#M19804</guid>
      <dc:creator>numbergirl</dc:creator>
      <dc:date>2017-11-07T14:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extraneous headers and footers in RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411274#M19808</link>
      <description>&lt;P&gt;I think that the problem is in the journal style and I suggest you submit the problem to SAS tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can get away with using a different style, the following appears to work correctly:&lt;/P&gt;
&lt;PRE&gt;ods rtf file="&amp;amp;outpath./filename.rtf"  style= SAPPHIRE;  
&lt;/PRE&gt;
&lt;P&gt;You may have to change the slash to a backslash as you originally had it. I had to use the above since I tested your code on SAS UE and it wouldn't accept the path (i.e., the one I had to use /folders/myfolders) unless I used the forward slash in the above statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 17:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411274#M19808</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-11-07T17:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extraneous headers and footers in RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411282#M19809</link>
      <description>&lt;P&gt;Thank your for your reply, Art.&amp;nbsp; That's interesting, and it does fix the header-footer problems, but alas, it changes the look of the table and I it to be in journal style.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Numbergirl&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 18:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411282#M19809</guid>
      <dc:creator>numbergirl</dc:creator>
      <dc:date>2017-11-07T18:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extraneous headers and footers in RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411285#M19810</link>
      <description>oh - okay, yes, good idea, i'll submit it as a possible issue with the journal style to SAS tech support. thanks again!&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2017 18:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/411285#M19810</guid>
      <dc:creator>numbergirl</dc:creator>
      <dc:date>2017-11-07T18:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extraneous headers and footers in RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/412491#M19845</link>
      <description>&lt;P&gt;This worked!&amp;nbsp; Thanks, Jody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, here is another suggestion. Please insert the STYLE statement underlined below into your PROC TEMPLATE code. &amp;nbsp;Please run your program again. &amp;nbsp;If it doesn't help and it wasn't because of a syntax error, please send me a subset of your data that I can test with here. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc&lt;/SPAN&gt; &lt;SPAN&gt;template&lt;/SPAN&gt;&lt;SPAN&gt;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;define style Styles.new_journal; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent = styles.Journal; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;style table from table/ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;prehtml=''; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;U&gt;style SysTitleAndFooterContainer from SysTitleAndFooterContainer&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;nbsp; /cellpadding = 0;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;end; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jody Carlton&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SAS Technical Support&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SAS Technical Support Services and Policies&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/techsup/support.html" target="_blank"&gt;http://support.sas.com/techsup/support.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 20:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/412491#M19845</guid>
      <dc:creator>numbergirl</dc:creator>
      <dc:date>2017-11-10T20:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extraneous headers and footers in RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/412497#M19846</link>
      <description>&lt;P&gt;Also note:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using multiple justifications in Title and Footnote statements with Journal style (or parenting from Journal style) requires changing the Cellpadding attribute to 0 in the SysTitleAndFooterContainer. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Usage Note 57982 has details. &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/kb/57982" target="_blank"&gt;http://support.sas.com/kb/57982&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 20:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Remove-extraneous-headers-and-footers-in-RTF-output/m-p/412497#M19846</guid>
      <dc:creator>numbergirl</dc:creator>
      <dc:date>2017-11-10T20:21:27Z</dc:date>
    </item>
  </channel>
</rss>

