<?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: multiple rtfs in one rtf file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801400#M315396</link>
    <description>Hi:&lt;BR /&gt;  As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; has explained, it would be much easier to combine the RTF files using Word or an Adobe product. The reason is that an RTF file, by Microsoft specification, has opening and closing control strings the denote the beginning and end of an RTF file. To combine the files using SAS, you'd have to write a program to strip out these open/close control strings, carefully -- strip the close out of the first file, strip the open and close out of the 2 middle files and then strip the open but leave the close on the last file. Doing  this in Word or Adobe would be easier than writing or debugging the SAS program to do it. And unfortunately, if you're not careful, it is possible to corrupt an RTF file so it is not "openable" if you take out the wrong control strings. Just some background on why you'd use a different tool.&lt;BR /&gt;Cynthia</description>
    <pubDate>Thu, 10 Mar 2022 17:27:54 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2022-03-10T17:27:54Z</dc:date>
    <item>
      <title>multiple rtfs in one rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801337#M315370</link>
      <description>&lt;P&gt;how to include multiple rtf files in one rtf using sas ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 14:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801337#M315370</guid>
      <dc:creator>abhinayingole</dc:creator>
      <dc:date>2022-03-10T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rtfs in one rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801351#M315378</link>
      <description>&lt;P&gt;Input (?????) or output?&lt;/P&gt;
&lt;P&gt;Once SAS has created an output RTF (or pretty much any other ODS destination) it is up to other tools to combine them, if that is your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS you have two ways to create such combined files: Place all of the output generated inside one ODS destination statement:&lt;/P&gt;
&lt;P&gt;Dummy example:&lt;/P&gt;
&lt;PRE&gt;ods rtf file="&amp;lt;path&amp;gt;somefile.rtf" &amp;lt;other ods options&amp;gt;;

Proc whatever;
run;
Proc otherproc;
run;

Proc yetanother;
run;

ods rtf close;&lt;/PRE&gt;
&lt;P&gt;Another option is create all of the output in one session and then use Proc Document to select and combine the output objects and send to a single ODS destination.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 15:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801351#M315378</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-10T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rtfs in one rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801352#M315379</link>
      <description>&lt;P&gt;i have 4 rtf file (already generated), i wanted to combine these 4 rtf in one rtf or pdf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you have any sample code for this ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 15:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801352#M315379</guid>
      <dc:creator>abhinayingole</dc:creator>
      <dc:date>2022-03-10T15:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rtfs in one rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801381#M315387</link>
      <description>It can be done using SAS but there are better tools for this - Adobe Acrobat professional would be my suggestion. &lt;BR /&gt;Especially if this is something that needs to be done once. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/pharmasug/2010/PO/PO05.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug/2010/PO/PO05.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug11/po/po10.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug11/po/po10.pdf&lt;/A&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801381#M315387</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-03-10T16:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: multiple rtfs in one rtf file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801400#M315396</link>
      <description>Hi:&lt;BR /&gt;  As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; has explained, it would be much easier to combine the RTF files using Word or an Adobe product. The reason is that an RTF file, by Microsoft specification, has opening and closing control strings the denote the beginning and end of an RTF file. To combine the files using SAS, you'd have to write a program to strip out these open/close control strings, carefully -- strip the close out of the first file, strip the open and close out of the 2 middle files and then strip the open but leave the close on the last file. Doing  this in Word or Adobe would be easier than writing or debugging the SAS program to do it. And unfortunately, if you're not careful, it is possible to corrupt an RTF file so it is not "openable" if you take out the wrong control strings. Just some background on why you'd use a different tool.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 10 Mar 2022 17:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-rtfs-in-one-rtf-file/m-p/801400#M315396</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-03-10T17:27:54Z</dc:date>
    </item>
  </channel>
</rss>

