<?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 Dynamically generate an excel from a visual analytics report (viya) through a job (stored process) in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Dynamically-generate-an-excel-from-a-visual-analytics-report/m-p/948523#M2650</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to do the following but failed so far if anyone can help out, I would appreciate it:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a visual analytics report. Inside the report I added a text content container and added a hyperlink with the following form :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;http:// &amp;lt;sas-server&amp;gt;/SASStoredProcess/?_program=/path_to_sas_program&amp;amp;param1={%1}&amp;amp;param2={%2}&amp;amp;_log=path_to_log/file.log

&lt;/PRE&gt;&lt;P&gt;when I launch this URL alone using a value instead of the placeholder {%1} and {%2} it works and generates the excel as long as i have &lt;STRONG&gt;a local path to my server&lt;/STRONG&gt; explicitly precides in my ODS EXCEL FILE= /path/ statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this is not what I want in the end. the idea is for any user to be able to download the excel output from my sas program by just clicking on the hyperlink. I used the _webout statement:&lt;/P&gt;&lt;PRE&gt;ods excel file =_webout options(sheet_interval="none"
                                embedded_titles='yes');&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;when i run my URL it doesn't work and i just get the content of my first sheet displayed on the webpage.&lt;/P&gt;&lt;P&gt;I must precise that the excel generated is supposed to be dynamically filtered according to param 1 and 2 that take values according to the visual analytics report. although I did put the placeholders I couldn't obtain this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;two questions here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- how to make this work so that any user from their computer can click on the hyperlink and download the excel?&lt;/P&gt;&lt;P&gt;2- How to configure my URL and macros in sas to dynamically take on their values from the visual analyrics report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance fo any help provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VERSIONS:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Viya 3.5&lt;/P&gt;&lt;P&gt;Visual Analytics 8.5.2&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 09:10:31 GMT</pubDate>
    <dc:creator>Joy216</dc:creator>
    <dc:date>2024-10-22T09:10:31Z</dc:date>
    <item>
      <title>Dynamically generate an excel from a visual analytics report (viya) through a job (stored process)</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Dynamically-generate-an-excel-from-a-visual-analytics-report/m-p/948523#M2650</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to do the following but failed so far if anyone can help out, I would appreciate it:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a visual analytics report. Inside the report I added a text content container and added a hyperlink with the following form :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;http:// &amp;lt;sas-server&amp;gt;/SASStoredProcess/?_program=/path_to_sas_program&amp;amp;param1={%1}&amp;amp;param2={%2}&amp;amp;_log=path_to_log/file.log

&lt;/PRE&gt;&lt;P&gt;when I launch this URL alone using a value instead of the placeholder {%1} and {%2} it works and generates the excel as long as i have &lt;STRONG&gt;a local path to my server&lt;/STRONG&gt; explicitly precides in my ODS EXCEL FILE= /path/ statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this is not what I want in the end. the idea is for any user to be able to download the excel output from my sas program by just clicking on the hyperlink. I used the _webout statement:&lt;/P&gt;&lt;PRE&gt;ods excel file =_webout options(sheet_interval="none"
                                embedded_titles='yes');&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;when i run my URL it doesn't work and i just get the content of my first sheet displayed on the webpage.&lt;/P&gt;&lt;P&gt;I must precise that the excel generated is supposed to be dynamically filtered according to param 1 and 2 that take values according to the visual analytics report. although I did put the placeholders I couldn't obtain this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;two questions here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- how to make this work so that any user from their computer can click on the hyperlink and download the excel?&lt;/P&gt;&lt;P&gt;2- How to configure my URL and macros in sas to dynamically take on their values from the visual analyrics report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance fo any help provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VERSIONS:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Viya 3.5&lt;/P&gt;&lt;P&gt;Visual Analytics 8.5.2&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 09:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Dynamically-generate-an-excel-from-a-visual-analytics-report/m-p/948523#M2650</guid>
      <dc:creator>Joy216</dc:creator>
      <dc:date>2024-10-22T09:10:31Z</dc:date>
    </item>
  </channel>
</rss>

