<?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: Load output from stored process directly into a pivot table? in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131555#M1343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I don't know why you want to run a stored process, if it's because you want the most recent data och the ability to subset data before you open the report.&lt;/P&gt;&lt;P&gt;One way to at least get the latest data is to add your code before the task code. If you open properites from the SAS add-in tab in excel and chose tasks, you can add code before and after the task. I think that if you add code that creates a table which you have registred in metadata you can first update/create that table and then open it in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;1. create table&lt;/P&gt;&lt;P&gt;2. Register in metadata.&lt;/P&gt;&lt;P&gt;3. create code that updates/recreate table&lt;/P&gt;&lt;P&gt;4. add code before task in Excel.&lt;/P&gt;&lt;P&gt;5. open table in pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Migtht work?!&lt;/P&gt;&lt;P&gt;Regards Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2012 06:32:32 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2012-11-22T06:32:32Z</dc:date>
    <item>
      <title>Load output from stored process directly into a pivot table?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131550#M1338</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;SAS 9.3&lt;/P&gt;&lt;P&gt;SAS Add-in for Microsoft Office (AMO) 5.1 (5.100.0.12019) (32-bit)&lt;/P&gt;&lt;P&gt;Microsoft Office 2007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SAS AMO, do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS Tab--&amp;gt; SAS Data --&amp;gt; Browse to desired dataset (eg. SASHELP.STOCKS) --&amp;gt; Select Pivot Table, New Worksheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, so good.&amp;nbsp; I can load a SAS dataset directly into a Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, using a stored process (an AMO Report), is there any way to load the output of the stored process &lt;SPAN style="text-decoration: underline; color: #ff0000;"&gt;&lt;STRONG&gt;directly&lt;/STRONG&gt;&lt;/SPAN&gt; into a Pivot Table?&amp;nbsp; I know I can load the data into an Excel worksheet, then use that worksheet as a source for the Pivot Table, but that's not what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping I could do this using some setting in the stored process, such as a Data Target (output stream) (which I've never used in my stored processes).&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>Wed, 21 Nov 2012 06:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131550#M1338</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2012-11-21T06:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load output from stored process directly into a pivot table?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131551#M1339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way could be to use a information map instead, see note:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/39/432.html"&gt;http://support.sas.com/kb/39/432.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have succesfully tested to open a information map based on a start schema directly into excel pivot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 12:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131551#M1339</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2012-11-21T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Load output from stored process directly into a pivot table?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131552#M1340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fredrik.&amp;nbsp; We only have a BI not EBI installation, so no Information Map Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my usage of AMO, I don't think what we want to do is possible; perhaps someone from SI can confirm this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I see it, we could dump the output from the stored process into a hidden worksheet, then build a pivot table from that using Excel's native functionality.&amp;nbsp; But that's not ideal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps we can do more using these approaches, but I'm not sure we want to go there:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="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;Regards,&lt;/P&gt;&lt;P&gt;Scott&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;CITE&gt;&lt;/CITE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 21:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131552#M1340</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2012-11-21T21:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load output from stored process directly into a pivot table?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131553#M1341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tableeditor tagsets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/tableeditor/index.html" title="http://support.sas.com/rnd/base/ods/odsmarkup/tableeditor/index.html"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/tableeditor/index.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 22:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131553#M1341</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-11-21T22:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load output from stored process directly into a pivot table?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131554#M1342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; The SAS Add-in for Microsoft Office can only accept HTML, CSV and SASReport results from a stored process. Even though TAGSETS.TABLEEDITOR is HTML, it also contains embedded JavaScript, which may not execute from inside the Add-in when the stored process returns results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The other thing about TAGSETS.TABLEEDITOR is that you generally open the output in a browser and then click a button to save to Excel (from the browser). When you use a stored process, within the context of the SAS Add-in, the Office Add-in is NOT a browser -- it is Word or PowerPoint or Outlook or Excel.&amp;nbsp;&amp;nbsp; It may be possible to run TAGSETS.TABLEEDITOR using the Information Delivery Portal or the Stored Process Web App. This would be a question to ask of Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 03:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131554#M1342</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-11-22T03:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load output from stored process directly into a pivot table?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131555#M1343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I don't know why you want to run a stored process, if it's because you want the most recent data och the ability to subset data before you open the report.&lt;/P&gt;&lt;P&gt;One way to at least get the latest data is to add your code before the task code. If you open properites from the SAS add-in tab in excel and chose tasks, you can add code before and after the task. I think that if you add code that creates a table which you have registred in metadata you can first update/create that table and then open it in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;1. create table&lt;/P&gt;&lt;P&gt;2. Register in metadata.&lt;/P&gt;&lt;P&gt;3. create code that updates/recreate table&lt;/P&gt;&lt;P&gt;4. add code before task in Excel.&lt;/P&gt;&lt;P&gt;5. open table in pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Migtht work?!&lt;/P&gt;&lt;P&gt;Regards Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 06:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Load-output-from-stored-process-directly-into-a-pivot-table/m-p/131555#M1343</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2012-11-22T06:32:32Z</dc:date>
    </item>
  </channel>
</rss>

