<?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: ods rtf filename in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-rtf-filename/m-p/92251#M9381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AncaTilea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. &lt;/P&gt;&lt;P&gt;I found this piece of code (for the header section) which helped to resolve the filename:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %if ( &amp;amp;REPORTFORMAT=RTF ) %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %let _odsdest=RTF;&lt;/P&gt;&lt;P&gt;%let rv = %sysfunc(appsrv_header(Content-type,application/msword));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let rv = %sysfunc(appsrv_header(Content-disposition,attachment%nrstr(;)&lt;/P&gt;&lt;P&gt;filename=meaningful_name.rtf));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 16:33:57 GMT</pubDate>
    <dc:creator>VD</dc:creator>
    <dc:date>2012-12-06T16:33:57Z</dc:date>
    <item>
      <title>ods rtf filename</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-rtf-filename/m-p/92249#M9379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I am creating an rtf file using ods in a stored process (without specifying any path). The default name of the file comes out to be do.doc which I want to change to something more meaningful. Is anyone aware of how to do it? I am using the following settings in the header of the code file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%if ( &amp;amp;REPORTFORMAT=RTF ) %then %do;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; %let _odsdest=RTF;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I also use this statement in the body of the code file:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ods rtf style=rtf bodytitle startpage=no nokeepn notoc_data nogfootnote ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;VD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-rtf-filename/m-p/92249#M9379</guid>
      <dc:creator>VD</dc:creator>
      <dc:date>2012-12-06T14:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: ods rtf filename</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-rtf-filename/m-p/92250#M9380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, if I understand correctly and you want just to assign a name but not the full path you cna do somehting like this:&lt;/P&gt;&lt;P&gt;ods rtf style=rtf bodytitle startpage=no nokeepn notoc_data nogfootnote&amp;nbsp; &lt;STRONG&gt;file = "meaningful_name.rtf"&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;I hope so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 15:28:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-rtf-filename/m-p/92250#M9380</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2012-12-06T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: ods rtf filename</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-rtf-filename/m-p/92251#M9381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AncaTilea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. &lt;/P&gt;&lt;P&gt;I found this piece of code (for the header section) which helped to resolve the filename:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %if ( &amp;amp;REPORTFORMAT=RTF ) %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %let _odsdest=RTF;&lt;/P&gt;&lt;P&gt;%let rv = %sysfunc(appsrv_header(Content-type,application/msword));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let rv = %sysfunc(appsrv_header(Content-disposition,attachment%nrstr(;)&lt;/P&gt;&lt;P&gt;filename=meaningful_name.rtf));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 16:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-rtf-filename/m-p/92251#M9381</guid>
      <dc:creator>VD</dc:creator>
      <dc:date>2012-12-06T16:33:57Z</dc:date>
    </item>
  </channel>
</rss>

