<?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 Create rtf file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137088#M295878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem to create a new rtf file. Each time when I use "ods rtf file="C:\...\my file" I have those errors in the log :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Parent (inheritance) cycle detected in template 'Rtf'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;WARNING: Could not find parent template: styles.Rtf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: Writing RTF Body file: W:\Commun\Stagiaires\Quentin\Rapport de stage\resultat_rando.rtf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: Unable to find the "Body" style element. Default style attributes will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: Unable to find the "TableHeaderContainer" style element. Default style attributes will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: Unable to find the "ColumnGroup" style element. Default style attributes will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to restore template with ods path reset but it did not work.I thought about modifying the styles.rtf style but I did not find the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did someone have a solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quentin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 10:12:52 GMT</pubDate>
    <dc:creator>Quentin_L</dc:creator>
    <dc:date>2014-01-10T10:12:52Z</dc:date>
    <item>
      <title>Create rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137088#M295878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem to create a new rtf file. Each time when I use "ods rtf file="C:\...\my file" I have those errors in the log :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Parent (inheritance) cycle detected in template 'Rtf'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;WARNING: Could not find parent template: styles.Rtf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: Writing RTF Body file: W:\Commun\Stagiaires\Quentin\Rapport de stage\resultat_rando.rtf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: Unable to find the "Body" style element. Default style attributes will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: Unable to find the "TableHeaderContainer" style element. Default style attributes will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: Unable to find the "ColumnGroup" style element. Default style attributes will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to restore template with ods path reset but it did not work.I thought about modifying the styles.rtf style but I did not find the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did someone have a solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quentin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 10:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137088#M295878</guid>
      <dc:creator>Quentin_L</dc:creator>
      <dc:date>2014-01-10T10:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137089#M295879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; The RTF template should ALWAYS be found, if SASHELP.TMPLMST exists, is in the ODS PATH and is not corrupted. So, I would recommend that you work with Tech Support on this error message. It could be warning you of other problems. Does this code work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I would be curious if you get the same error when you use "regular" RTF style template. But, either way, I would say definitely open a track with Tech Support.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='xxx.rtf' style=styles.rtf;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 13:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137089#M295879</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-01-10T13:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137090#M295880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same error with your code. But I don't have the SASHELP.TMPLMST library, is it normal ?&lt;/P&gt;&lt;P&gt;I didn't precise, I use SAS 9.2&lt;/P&gt;&lt;P&gt;It's works on my colleague computer but he doesn't have the tmplmst folder.&lt;/P&gt;&lt;P&gt;If I use &lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='xxx.rtf' style=Default; &lt;/STRONG&gt;I do not have any Error or Warning.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Quentin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 14:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137090#M295880</guid>
      <dc:creator>Quentin_L</dc:creator>
      <dc:date>2014-01-10T14:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137091#M295881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution, I delete the folder profil in SASUSER and now it works. I think I did something which changed the rtf style and use this new version from my profil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 15:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-rtf-file/m-p/137091#M295881</guid>
      <dc:creator>Quentin_L</dc:creator>
      <dc:date>2014-01-10T15:17:45Z</dc:date>
    </item>
  </channel>
</rss>

