<?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: Reading RTF files in SAS dataset in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74483#M1016</link>
    <description>Not sure it would make sense for SAS Institute - have you considered the number of standards/versions?&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://en.wikipedia.org/wiki/Rich_Text_Format" target="_blank"&gt;http://en.wikipedia.org/wiki/Rich_Text_Format&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Wed, 01 Sep 2010 21:17:25 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-09-01T21:17:25Z</dc:date>
    <item>
      <title>Reading RTF files in SAS dataset</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74477#M1010</link>
      <description>I have been doing some research on how to read a RTF file into a SAS dataset and haven't found much at all.  Does anyone have any advise on reading in RTF files?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 08 Apr 2010 19:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74477#M1010</guid>
      <dc:creator>nickb</dc:creator>
      <dc:date>2010-04-08T19:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading RTF files in SAS dataset</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74478#M1011</link>
      <description>The SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website has a few SUGI/SGF conference papers and technical references on the topic - it will be a matter of user-coded DATA step processing to parse/read the RTF data lines, interpret the commands/data-strings and generate your desired SAS dataset and variables.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
read rtf file site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
read external data site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
data step programming introduction site:sas.com

Message was edited by: sbb</description>
      <pubDate>Thu, 08 Apr 2010 19:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74478#M1011</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-04-08T19:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reading RTF files in SAS dataset</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74479#M1012</link>
      <description>Hi:&lt;BR /&gt;
  In addition to Scott's suggestion, I have had students do the following:&lt;BR /&gt;
1) open the RTF file with Word&lt;BR /&gt;
2) highlight and cut/copy the table in Word&lt;BR /&gt;
3) paste the table into Excel&lt;BR /&gt;
4) save the Excel file to an XLS file&lt;BR /&gt;
5) read the Excel file with PROC IMPORT or the Libname Engine&lt;BR /&gt;
&lt;BR /&gt;
I would imagine that the process can be automated with Office macros or VB scripts. Depending on the volume of RTF files to be read, if you have a lot of RTF files, then you might want to invest the energy in the DATA step approach.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 09 Apr 2010 14:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74479#M1012</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-09T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading RTF files in SAS dataset</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74480#M1013</link>
      <description>Hahahaha.....&lt;BR /&gt;
That is a good idea.I learned it .</description>
      <pubDate>Tue, 11 May 2010 03:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74480#M1013</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-05-11T03:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading RTF files in SAS dataset</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74481#M1014</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have written a paper to convert .rtf files into sas datasets.&lt;BR /&gt;
&lt;BR /&gt;
This paper will be presented in Pharmasug2010 next week.&lt;BR /&gt;
&lt;BR /&gt;
Please check the online proceedings of PharmaSUG2010 in a week or two.&lt;BR /&gt;
&lt;BR /&gt;
Regards</description>
      <pubDate>Mon, 17 May 2010 13:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74481#M1014</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-17T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reading RTF files in SAS dataset</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74482#M1015</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
 Thank you for all your insightful postings. I guess that you may be working for SAS.&lt;BR /&gt;
&lt;BR /&gt;
 Is it possible for SAS to come up with a %rtfToSAS so we can just import the rtf tables back into SAS data sets?&lt;BR /&gt;
&lt;BR /&gt;
Regards,</description>
      <pubDate>Wed, 01 Sep 2010 19:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74482#M1015</guid>
      <dc:creator>fd2010</dc:creator>
      <dc:date>2010-09-01T19:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reading RTF files in SAS dataset</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74483#M1016</link>
      <description>Not sure it would make sense for SAS Institute - have you considered the number of standards/versions?&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://en.wikipedia.org/wiki/Rich_Text_Format" target="_blank"&gt;http://en.wikipedia.org/wiki/Rich_Text_Format&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 01 Sep 2010 21:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74483#M1016</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-09-01T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading RTF files in SAS dataset</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74484#M1017</link>
      <description>Hi:&lt;BR /&gt;
  I agree with Scott -- it doesn't make sense to me for an "RTF2SAS" routine. For one thing, an RTF file is a document -- with TITLES and FOOTNOTES and procedure titles and possibly a TABLE of contents. What if there is a table that spans pages? What if there is a table with ancillary text as a caption??? What if there are 10 footnotes with information about outliers??? What if there is one table of people's names and ages and another table of people's names and addresses -- would those be 2 separate datasets?? I don't think there's a way to write a generic program to parse the RTF description of a &lt;B&gt;&lt;U&gt;document&lt;/U&gt;&lt;/B&gt; and turn any tables found in that document into a SAS dataset(s).&lt;BR /&gt;
 &lt;BR /&gt;
  I know that several folks have worked on parsing RTF and Word XML files. I believe there was a reference to this paper:&lt;BR /&gt;
&lt;A href="http://www.pharmasug.org/cd/papers/TT/TT13.pdf" target="_blank"&gt;http://www.pharmasug.org/cd/papers/TT/TT13.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  That might be one place to start if you are intent on having such a conversion available.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 01 Sep 2010 21:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-RTF-files-in-SAS-dataset/m-p/74484#M1017</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-01T21:34:10Z</dc:date>
    </item>
  </channel>
</rss>

