<?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 Dynamic queries using Addin for Microsoft Office in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Dynamic-queries-using-Addin-for-Microsoft-Office/m-p/126511#M1314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say I have an Excel workbook with 12 worksheets.&amp;nbsp; Each worksheet is loading data from 12 separate datasets.&amp;nbsp; However, all 12 datasets have a common structure, i.e. fromdate and todate.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each dataset is filtered by a desired date range each month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Loading the SAS data into Excel using SAS Data --&amp;gt; (View SAS Data Window) --&amp;gt; Browse data to select the data source --&amp;gt; Filter and sort... button:&amp;nbsp; Is there a way to dynamically set the values for the filter?&amp;nbsp; Ideally I'd type data in an Excel cell, and the filter would pick up that value from the cell.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since all 12 datasets are filtered by the same criteria, it would be nice to setup a dynamic filter for each query, then change the values in one spot for the 12 datasets.&amp;nbsp; We will be copying the Excel workbook, such as FOO_201301.xlsx, FOO_201302.xlsx, etc, each month, and it's kind of a pain to have to go into all 12 queries to update the hardcoded values for the fromdate and todate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Same question as above, but using a stored process.&amp;nbsp; I thought I read somewhere that Excel data can be passed into a stored process, and thus control the data returned by the stored process?&amp;nbsp; Although not ideal - I'd prefer not to have to create a stored process - this could be a suitable workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 23:49:35 GMT</pubDate>
    <dc:creator>ScottBass</dc:creator>
    <dc:date>2013-01-15T23:49:35Z</dc:date>
    <item>
      <title>Dynamic queries using Addin for Microsoft Office</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Dynamic-queries-using-Addin-for-Microsoft-Office/m-p/126511#M1314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say I have an Excel workbook with 12 worksheets.&amp;nbsp; Each worksheet is loading data from 12 separate datasets.&amp;nbsp; However, all 12 datasets have a common structure, i.e. fromdate and todate.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each dataset is filtered by a desired date range each month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Loading the SAS data into Excel using SAS Data --&amp;gt; (View SAS Data Window) --&amp;gt; Browse data to select the data source --&amp;gt; Filter and sort... button:&amp;nbsp; Is there a way to dynamically set the values for the filter?&amp;nbsp; Ideally I'd type data in an Excel cell, and the filter would pick up that value from the cell.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since all 12 datasets are filtered by the same criteria, it would be nice to setup a dynamic filter for each query, then change the values in one spot for the 12 datasets.&amp;nbsp; We will be copying the Excel workbook, such as FOO_201301.xlsx, FOO_201302.xlsx, etc, each month, and it's kind of a pain to have to go into all 12 queries to update the hardcoded values for the fromdate and todate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Same question as above, but using a stored process.&amp;nbsp; I thought I read somewhere that Excel data can be passed into a stored process, and thus control the data returned by the stored process?&amp;nbsp; Although not ideal - I'd prefer not to have to create a stored process - this could be a suitable workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 23:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Dynamic-queries-using-Addin-for-Microsoft-Office/m-p/126511#M1314</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-01-15T23:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic queries using Addin for Microsoft Office</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Dynamic-queries-using-Addin-for-Microsoft-Office/m-p/126512#M1315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions above are answered in this SGF paper:&amp;nbsp; &lt;A href="http://support.sas.com/resources/papers/proceedings11/012-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/012-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/012-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've also learned that there isn't any online documentation (i.e. &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com"&gt;http://support.sas.com&lt;/A&gt;&lt;SPAN&gt; documentation) for automating AMO.&amp;nbsp; The best resource is the help file in AMO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 11:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Dynamic-queries-using-Addin-for-Microsoft-Office/m-p/126512#M1315</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-01-17T11:26:31Z</dc:date>
    </item>
  </channel>
</rss>

