<?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: How to get a download button in the report output in SAS 9.3 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151558#M298228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you kindly provide the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really find where your problem is.&lt;/P&gt;&lt;P&gt;- Does the code that worked in 9.1 crash in 9.3?&lt;/P&gt;&lt;P&gt;- do you get the button in 9.1 but not in 9.3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 09:00:50 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2014-05-09T09:00:50Z</dc:date>
    <item>
      <title>How to get a download button in the report output in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151557#M298227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Can you please help me in sharing the code to get a download button after generating the ods output of a SAS report (format in Excel) in SAS 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than viewing the file you will also get a download option to download the output file in SAS 9.3.&lt;/P&gt;&lt;P&gt;Kindly find the attached image where i am getting a download button and after clicking the hyperlink,i get the option to save the output file in Excel in my local computer.&lt;/P&gt;&lt;P&gt;I have written the code in SAS 9.1 but the same code is not working in SAS 9.3.So please guide me how to update the same in SAS 9.3.&lt;/P&gt;&lt;P&gt;Please let me know if you required any further details form me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dwnloadbutton.bmp" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6269_dwnloadbutton.bmp" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 08:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151557#M298227</guid>
      <dc:creator>Somu</dc:creator>
      <dc:date>2014-05-09T08:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a download button in the report output in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151558#M298228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you kindly provide the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really find where your problem is.&lt;/P&gt;&lt;P&gt;- Does the code that worked in 9.1 crash in 9.3?&lt;/P&gt;&lt;P&gt;- do you get the button in 9.1 but not in 9.3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 09:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151558#M298228</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-09T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a download button in the report output in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151559#M298229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear,&lt;/P&gt;&lt;P&gt;I could able to use the code in 9.3 to get the download button,but the issue is I couldn't able to download the file in excel format,By default its in csv format.&lt;/P&gt;&lt;P&gt;Kindly find the below code for your reference and help me in changing the default format as Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; csv=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;%qsubstr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;_replay,2,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;%length&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;_replay)-3).document.csv;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;html&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; =mystyle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;_NULL_&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; _webout;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;lt;table border="1" width="100" bordercolorlight=#BBBBBB cellspacing="0" cellpadding="0"&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;"&amp;lt;head&amp;gt;"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;nbsp; &amp;lt;tr&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td width="100%" bgcolor="#CCFFFF" align="center"&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href='&amp;amp;CSV' target='_blank'&amp;gt;&amp;lt;font size='2' color='black'&amp;gt;Download&amp;lt;/font&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;nbsp; &amp;lt;/tr&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;lt;/table&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;lt;!--END OF EDIT--&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; csvout &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;catalog&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;"&amp;amp;_tmpcat..document.csv"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 06:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151559#M298229</guid>
      <dc:creator>Somu</dc:creator>
      <dc:date>2014-05-13T06:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a download button in the report output in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151560#M298230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it seems the file is created as .csv in another part of the program, you need to look there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151560#M298230</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-13T08:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a download button in the report output in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151561#M298231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not save the table as excel table using the webpage data. &lt;BR /&gt;Instruct your user to move the mouse to the table at the webpage and other mouse button and "export to excel" For small tables very workable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Downloading a file is possible when:&lt;/P&gt;&lt;P&gt;1/ you have stored that in a dataset accessible by a webserver so you can make a hyperlink (&lt;A href="http://... /"&gt;http://... /&lt;/A&gt; to that&lt;BR /&gt;2/ using the WebDAV protocol that can access the data. &lt;BR /&gt;You have stored you csv in a SAS catalog. Yes that is possible like also sas-sources log list and much more. It is easy to offer it cross-platform with RLS. &lt;BR /&gt;The issue is a SAS catalog is only readable with SAS tooling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uploading files is documented at: &lt;A href="http://support.sas.com/documentation/cdl/en/stpug/62758/HTML/default/viewer.htm#p0jqbnv7miosidn1xw3tqe3f0hv0.htm" title="http://support.sas.com/documentation/cdl/en/stpug/62758/HTML/default/viewer.htm#p0jqbnv7miosidn1xw3tqe3f0hv0.htm"&gt;SAS(R) 9.3 Stored Processes: Developer's Guide&lt;/A&gt; . you can upload to catalogs.&lt;/P&gt;&lt;P&gt;The other way around I have not found/seen, but remember this thread &lt;A _jive_internal="true" href="https://communities.sas.com/message/203921"&gt;https://communities.sas.com/message/203921&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="815450" data-username="boemskats" href="https://communities.sas.com/people/boemskats" id="jive-81545015352454613509711"&gt;Nikola Markovic&lt;/A&gt; did a nice approach. I think you need some adjustments but the idea is good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 09:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-a-download-button-in-the-report-output-in-SAS-9-3/m-p/151561#M298231</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-13T09:19:05Z</dc:date>
    </item>
  </channel>
</rss>

