<?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: Corrupt RTF file produced by ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650696#M24123</link>
    <description>&lt;P&gt;Thanks for the LibreOffice tip. It does open in LO, but the table is nonetheless messed up. See below.The years should be in the second column (which they are for the other family types not shown). However, it does look like I was on the wrong track thinking about the RTF output. My program also writes xlsx and html, and it is messed up there too. So is this a proc tabulate problem? An excerpt of my code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;options ls=max ps=max;
options papersize=A4 orientation=portrait;
ods _all_ close;
ods graphics on /reset=index height=11.5in ;
ods rtf  style=bbfp file="&amp;amp;Output\Trends.rtf"  image_dpi=300 bodytitle;
ods html style=bbfp path="&amp;amp;SASImages" gpath="&amp;amp;SASImages"  image_dpi=300;
ods Excel file="&amp;amp;Output\Trends.xlsx" style=BBfp options(sheet_interval='NONE' embedded_titles='yes')  ;
ods escapechar="~";  /* used to insert special formatting commands, like {NEWLINE} */
&lt;BR /&gt;[cut]

proc tabulate data=dat1 style=[cellwidth=75];
  weight w1;
  class surveyyear hhstruct21 H_IS;
  label surveyyear=;
  label hhstruct21='00'x;
  label H_IS='00'x;
  var Y one;
  table  hhstruct21*surveyyear='' ,
        (H_IS all="All people")*
        (p10 p20 median mean)*f=comma6.0*
        y=""
        /  row=float
   ;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BruceBrad_0-1590494123884.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39975iE87FADAF0E917E2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BruceBrad_0-1590494123884.png" alt="BruceBrad_0-1590494123884.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 12:10:41 GMT</pubDate>
    <dc:creator>BruceBrad</dc:creator>
    <dc:date>2020-05-26T12:10:41Z</dc:date>
    <item>
      <title>Corrupt RTF file produced by ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650645#M24120</link>
      <description>&lt;P&gt;I'm finding that some of my RTF files are being reported by Word as having corrupt tables. There is no error message in the log file of the SAS program that created them. I'm not using any special formatting commands other than {NEWLINE} statements in tables. The tables are quite large however. Any solution to this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 09:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650645#M24120</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2020-05-26T09:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupt RTF file produced by ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650651#M24121</link>
      <description>&lt;P&gt;Open the files with an alternative, like LibreOffice. If that also chokes on the files, open a track with SAS technical support, as you might have uncovered a problem in ODS RTF.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 10:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650651#M24121</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-26T10:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupt RTF file produced by ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650683#M24122</link>
      <description>&lt;P&gt;Did you try it without the {newline}?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might help to show at least the code used. And since this is an ODS issue include the ODS RTF along with whatever table generating code you use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Word does enough all by itself on "corrupting" large complex tables. So you also might consider whether a set of simpler tables would do.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 11:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650683#M24122</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-26T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupt RTF file produced by ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650696#M24123</link>
      <description>&lt;P&gt;Thanks for the LibreOffice tip. It does open in LO, but the table is nonetheless messed up. See below.The years should be in the second column (which they are for the other family types not shown). However, it does look like I was on the wrong track thinking about the RTF output. My program also writes xlsx and html, and it is messed up there too. So is this a proc tabulate problem? An excerpt of my code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;options ls=max ps=max;
options papersize=A4 orientation=portrait;
ods _all_ close;
ods graphics on /reset=index height=11.5in ;
ods rtf  style=bbfp file="&amp;amp;Output\Trends.rtf"  image_dpi=300 bodytitle;
ods html style=bbfp path="&amp;amp;SASImages" gpath="&amp;amp;SASImages"  image_dpi=300;
ods Excel file="&amp;amp;Output\Trends.xlsx" style=BBfp options(sheet_interval='NONE' embedded_titles='yes')  ;
ods escapechar="~";  /* used to insert special formatting commands, like {NEWLINE} */
&lt;BR /&gt;[cut]

proc tabulate data=dat1 style=[cellwidth=75];
  weight w1;
  class surveyyear hhstruct21 H_IS;
  label surveyyear=;
  label hhstruct21='00'x;
  label H_IS='00'x;
  var Y one;
  table  hhstruct21*surveyyear='' ,
        (H_IS all="All people")*
        (p10 p20 median mean)*f=comma6.0*
        y=""
        /  row=float
   ;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BruceBrad_0-1590494123884.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39975iE87FADAF0E917E2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BruceBrad_0-1590494123884.png" alt="BruceBrad_0-1590494123884.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 12:10:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650696#M24123</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2020-05-26T12:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupt RTF file produced by ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650701#M24124</link>
      <description>&lt;P&gt;Removing "/row = float" and replacing with "/nocellmerge" fixed the problem. (I didn't really need the row titles to float, but did want the cells in the xlsx output to be not merged). Incidentally, row=float was not a problem for my smaller tables - it just seemed to produce problems for large tables.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 12:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650701#M24124</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2020-05-26T12:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupt RTF file produced by ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650755#M24125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12505"&gt;@BruceBrad&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Removing "/row = float" and replacing with "/nocellmerge" fixed the problem. (I didn't really need the row titles to float, but did want the cells in the xlsx output to be not merged). Incidentally, row=float was not a problem for my smaller tables - it just seemed to produce problems for large tables.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You might also look at why you tried to set&lt;/P&gt;
&lt;PRE&gt;style=[cellwidth=75];&lt;/PRE&gt;
&lt;P&gt;Especially without specifying a unit for the width.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have had the problem with tables displaying the way you show, some columns on some rows not aligning correctly but for me the &lt;STRONG&gt;fix&lt;/STRONG&gt; was row=float.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "labels" of '00'x might partially be an issue as well but without data to test anything I can't say for sure. Why are you using those labels?&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 13:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650755#M24125</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-26T13:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupt RTF file produced by ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650946#M24126</link>
      <description>&lt;P&gt;Yes, I should specify units on the cellwidth. (The doc suggests the default is 1/150 inch).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The '00'x labels are to remove the labels for these variables. This does seem odd, but I haven't found a better way to do it.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 00:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Corrupt-RTF-file-produced-by-ODS/m-p/650946#M24126</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2020-05-27T00:19:28Z</dc:date>
    </item>
  </channel>
</rss>

