<?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 in excel file but want to export multiple RTF files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-excel-file-but-want-to-export-multiple-RTF-files/m-p/614569#M179692</link>
    <description>&lt;P&gt;To me this sounds like you really want a Microsoft help site to work with MAILMERGE.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Dec 2019 16:31:49 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-12-31T16:31:49Z</dc:date>
    <item>
      <title>Reading in excel file but want to export multiple RTF files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-excel-file-but-want-to-export-multiple-RTF-files/m-p/614566#M179690</link>
      <description>&lt;P&gt;I am importing information from an excel file to do a document merge into a letter using a letterhead template.&amp;nbsp; Then I want to export that letter into several separate .RTF files to have separate letters to send out via email.&amp;nbsp; I have been able to create a merged master file on letterhead containing all of the pages using all of the records from the excel file (which I put into a multi page .RTF file called MEMO.rtf):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename word DDE 'Winword|system' lrecl=1000;
 options noxwait noxsync; 

filename watermrk "N:\Letterhead.doc";
 %let rc=%sysfunc(system(start winword));

 data _null_;
 file word;
 put '[FileOpen.Name = "' "N:\Letterhead.doc" '"]';
 put '[Insertfile .Name ="' "N:\MEMO.rtf" '" ]';
 put '[FilePageSetup '
 '.Orientation =0,'
 '.PageWidth ="8.5 in ",'
 '.PageHeight ="11.5 in ",'
 '.TopMargin ="1 in ",'
 '.BottomMargin ="1 in ",'
 '.LeftMargin ="1 in ",'
 '.RightMargin =1 in "]';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am getting stuck at how to parse out the multiple records into multiple RTF files. help!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 16:02:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-excel-file-but-want-to-export-multiple-RTF-files/m-p/614566#M179690</guid>
      <dc:creator>JEChurchill</dc:creator>
      <dc:date>2019-12-31T16:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in excel file but want to export multiple RTF files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-excel-file-but-want-to-export-multiple-RTF-files/m-p/614569#M179692</link>
      <description>&lt;P&gt;To me this sounds like you really want a Microsoft help site to work with MAILMERGE.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 16:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-excel-file-but-want-to-export-multiple-RTF-files/m-p/614569#M179692</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-31T16:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in excel file but want to export multiple RTF files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-excel-file-but-want-to-export-multiple-RTF-files/m-p/614631#M179730</link>
      <description>&lt;P&gt;I'd suggest you explore the SAS ODS RTF facility to write your documents instead of coding it yourself:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p1vvsv8ucnjzjnn1wq5wrlp74mdb.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p1vvsv8ucnjzjnn1wq5wrlp74mdb.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 22:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-excel-file-but-want-to-export-multiple-RTF-files/m-p/614631#M179730</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-31T22:14:30Z</dc:date>
    </item>
  </channel>
</rss>

