<?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: Modifying TAGSETS.RTF through PROC TEMPLATE and Inheritance in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/278133#M16130</link>
    <description>&lt;P&gt;Hi FlimFlam&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much. I was looking for this long time. I have written to SAS Support last month still no answers. I followed link which you have added. It is working fine now&amp;nbsp;:smileyhappy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Rajaram&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2016 08:27:07 GMT</pubDate>
    <dc:creator>Rajaram</dc:creator>
    <dc:date>2016-06-17T08:27:07Z</dc:date>
    <item>
      <title>Modifying TAGSETS.RTF through PROC TEMPLATE and Inheritance</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/277419#M16097</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to modify some of the events in the RTF tagset via PROC TEMPLATE in SAS 9.4 by creating a new tagset and setting the PARENT to RTF (similar to what's outlined here: &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/viewer.htm#a002285940.htm.)" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/viewer.htm#a002285940.htm.)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a first step, I decided to try creating a new tagset that fully inherits the RTF tagset (no modifications.) I used the following to do that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC TEMPLATE;
     DEFINE TAGSET TAGSETS.RTF_MOD /STORE=SASUSER.TEMPLAT;
     PARENT=TAGSETS.RTF;
     END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The TEMPLATE code above ran without any problems, but when I attempt to use the new TAGSETS.RTF_MOD, I get strange results. Here's the code I used to try creating a new RTF using the RTF_MOD tagset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS TAGSETS.RTF_MOD FILE = '[Output directory]\Testing.rtf';
ODS TEXT = 'TESTING 123';
ODS TAGSETS.RTF_MOD CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And here's the output I got in my "Testing.rtf" file (when viewed through MS Word):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{\fonttbl&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;{\colortbl;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;{\*\bkmkstart IDX}{\*\bkmkend IDX} }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like perhaps the RTF control words are being saved as plaintext, rather than as an RTF - am I missing something in my code above? If I use the same ODS code as above, but change the destination from RTF_MOD to RTF, then the RTF file is created correctly. Not sure what I'm doing wrong....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insights are appreciated - thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 01:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/277419#M16097</guid>
      <dc:creator>FlimFlam</dc:creator>
      <dc:date>2016-06-15T01:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying TAGSETS.RTF through PROC TEMPLATE and Inheritance</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/277666#M16111</link>
      <description>Hi:&lt;BR /&gt;  First, I would not really recommend this if you are not very comfortable with both RTF control strings and RTF command syntax and with PROC TEMPLATE.&lt;BR /&gt;&lt;BR /&gt;  The reason I say this is that if you have 1 single mismatched { or } the RTF file will become unreadable/unrender-able by a word processor. &lt;BR /&gt;&lt;BR /&gt;So what is the modification you want to implement? Can you elaborate? Is it primarily a style change or do you actually want to modify the RTF control strings that are generated? &lt;BR /&gt;&lt;BR /&gt;In fact, the example you posted is about making an HTML modification to the HTML tags. HTML in a browser is WAY, WAY more forgiving than RTF in a word processor when being rendered.&lt;BR /&gt;&lt;BR /&gt;  And, I'm not actually sure that just having a PARENT= statement will work for TAGSET templates. I think you have to have some events, but I'm not sure which ones.&lt;BR /&gt;&lt;BR /&gt;This seems, to me, to be to be a question for Tech Support. &lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 15 Jun 2016 20:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/277666#M16111</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-06-15T20:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying TAGSETS.RTF through PROC TEMPLATE and Inheritance</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/278063#M16129</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I posted this, I did a little more digging, and eventually found what I was looking for: &lt;A href="http://support.sas.com/kb/45/138.html" target="_blank"&gt;http://support.sas.com/kb/45/138.html.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After copying that code in, I re-implemented the events that I wanted to, and now everything works like a charm!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 01:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/278063#M16129</guid>
      <dc:creator>FlimFlam</dc:creator>
      <dc:date>2016-06-17T01:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying TAGSETS.RTF through PROC TEMPLATE and Inheritance</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/278133#M16130</link>
      <description>&lt;P&gt;Hi FlimFlam&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much. I was looking for this long time. I have written to SAS Support last month still no answers. I followed link which you have added. It is working fine now&amp;nbsp;:smileyhappy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Rajaram&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 08:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modifying-TAGSETS-RTF-through-PROC-TEMPLATE-and-Inheritance/m-p/278133#M16130</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2016-06-17T08:27:07Z</dc:date>
    </item>
  </channel>
</rss>

