<?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: Writing/Copying Table created using ODS into patient narrative creating in RTF using proc stream in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396233#M95639</link>
    <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached wroge code in my last post. Please find the sample code where i am trying to write/copy table in RTF document creating using proc stream.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also again attached output (Narrative_sampleN.rtf) created using same code and in third attachment , i have provided the contents that i am writting to my narrative document. Header, narrative introduction... etc using SAS macros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Narrative_sample.rtf, Instead of table , it is coming some different lines describing my table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me here. &amp;nbsp;I hope , the attached files would&amp;nbsp;be useful&amp;nbsp;to you for giving assistance to handle this scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 10:01:45 GMT</pubDate>
    <dc:creator>Ashish_S</dc:creator>
    <dc:date>2017-09-15T10:01:45Z</dc:date>
    <item>
      <title>Writing/Copying Table created using ODS into patient narrative creating in RTF using proc stream</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/395508#M95410</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requesting you please help me with the below query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create the patient Narrative in RTF format . &amp;nbsp;I can able to write eveything using proc stream in patient narative RTF doc&amp;nbsp;but I am not able to include the table in RTF document. The table is getting created using ODS and the using in proc stream to include that table in narrative.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In HTML format , table is coming properly but when tried with RTF , something different lines are coming instead of table . Please find the attached doc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone have any idea or faced this kind of issue earlier then please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/395508#M95410</guid>
      <dc:creator>Ashish_S</dc:creator>
      <dc:date>2017-09-13T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Writing/Copying Table created using ODS into patient narrative creating in RTF using proc stream</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/395562#M95432</link>
      <description>&lt;P&gt;It would help if you showed code that you used and example data. Dummy data is fine as long as it will replicate the issue you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 14:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/395562#M95432</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-13T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Writing/Copying Table created using ODS into patient narrative creating in RTF using proc stream</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396215#M95632</link>
      <description>&lt;P&gt;Hi &amp;nbsp;Ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached code to write/copy the table in patient narative document getting create using proc stream in RTF format. I have attached code, Narative_sampleN.rtf and word doc which content &amp;nbsp;patient narration (in RTF Format) which will be before writting the table in narration doc. I am able to write &lt;SPAN&gt;content &lt;/SPAN&gt;of all different sections using SAS macro &amp;nbsp;but at the end of this &amp;nbsp;i wanted to copy/wrirte table using same proc stream but when i am trying it then instead of table , it is displaying some RTF lines describing table which needs to be handled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attached Narrative_SampleN.rtf is output of my code in which i am trying to write table in RTF file using proc stream . Note that, before table there would be patient narration&amp;nbsp;which is display in my third attachement. Only table i am not able to write/copy into my narrative RTF file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please assist.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396215#M95632</guid>
      <dc:creator>Ashish_S</dc:creator>
      <dc:date>2017-09-15T09:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Writing/Copying Table created using ODS into patient narrative creating in RTF using proc stream</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396222#M95634</link>
      <description>&lt;P&gt;If I understand correctly what you want to do is write a stream of text followed by a rendering of a SAS data set to an RTF file. The reason your Proc Stream isn't working as you expect is because it is designed to process text and macro code only. I think the best way to do this is to use the ODS Document destination to print the text (using Proc Stream if you wish) followed by a Proc Print for the table. You can then use Proc Document to write all of that to an RTF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you give us some sample code for your Proc Stream reading your text I can supply more details but it's a bit difficult for me to give you code otherwise.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396222#M95634</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-15T09:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Writing/Copying Table created using ODS into patient narrative creating in RTF using proc stream</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396233#M95639</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached wroge code in my last post. Please find the sample code where i am trying to write/copy table in RTF document creating using proc stream.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also again attached output (Narrative_sampleN.rtf) created using same code and in third attachment , i have provided the contents that i am writting to my narrative document. Header, narrative introduction... etc using SAS macros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Narrative_sample.rtf, Instead of table , it is coming some different lines describing my table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me here. &amp;nbsp;I hope , the attached files would&amp;nbsp;be useful&amp;nbsp;to you for giving assistance to handle this scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 10:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396233#M95639</guid>
      <dc:creator>Ashish_S</dc:creator>
      <dc:date>2017-09-15T10:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Writing/Copying Table created using ODS into patient narrative creating in RTF using proc stream</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396336#M95677</link>
      <description>&lt;P&gt;&amp;nbsp;Hi ChrisBrooks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to write text by resolving the macro variables followed by table to create RTF document which should contain all text and table but not able to create file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with the approach how can we&amp;nbsp;write text from&amp;nbsp;macro variables followed by SAS table in RTF file using ODS Document &amp;amp; Proc Document&amp;nbsp;.? &amp;nbsp;Please let me know in case if you require any more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 13:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Writing-Copying-Table-created-using-ODS-into-patient-narrative/m-p/396336#M95677</guid>
      <dc:creator>Ashish_S</dc:creator>
      <dc:date>2017-09-15T13:57:25Z</dc:date>
    </item>
  </channel>
</rss>

