<?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: AMO Excel - How do I read table in SAS library and put results back to Excel spreadsheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323614#M271225</link>
    <description>&lt;P&gt;Start Enterprise Guide, use the same credentials you use in the AMO, connect to SASApp and look for library slasklib.&lt;/P&gt;
&lt;P&gt;The only thing that comes to mind is that the user used in AMO does not have the same permissions as sassrv (which is most probably used to start the STP server instances)&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 13:45:52 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-01-10T13:45:52Z</dc:date>
    <item>
      <title>AMO Excel - How do I read table in SAS library and put results back to Excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323572#M271224</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS AMO in Excel and I'm trying to run a Stored Process (STP) and get the results back to my spreadsheet. Running the STP works fine but the results not. The error message is that it can't find the server --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6645iCEEDB83C3ADB8929/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The VBA code that I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub InsertStoredProcess()&lt;BR /&gt;&amp;nbsp; Dim sas As SASExcelAddIn&lt;BR /&gt;&amp;nbsp; Set sas = Application.COMAddIns.Item("SAS.ExcelAddIn").Object&lt;BR /&gt;&amp;nbsp; sas.InsertStoredProcess "/Solvens 2 : Verksamheten/Aktuarie/BI Content/ClaesExcelAMO_DEV", Sheet1.Range("A1")&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Dim displayData As SASDataView&lt;BR /&gt;&amp;nbsp;Set displayData = sas.InsertDataFromLibrary("SASApp", "slasklib", "Yalla", Sheet2.Range("A5"), 25, False, "", False)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(if I use the SASHELP library and dataset CLASS, it works fine)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to define my library in another way? (they are pre-assinged, type "By native library Engine")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone knows what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(SAS 9.3 M2 and SAS Add-In 7.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Claes&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323572#M271224</guid>
      <dc:creator>Clash</dc:creator>
      <dc:date>2017-01-10T11:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: AMO Excel - How do I read table in SAS library and put results back to Excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323614#M271225</link>
      <description>&lt;P&gt;Start Enterprise Guide, use the same credentials you use in the AMO, connect to SASApp and look for library slasklib.&lt;/P&gt;
&lt;P&gt;The only thing that comes to mind is that the user used in AMO does not have the same permissions as sassrv (which is most probably used to start the STP server instances)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 13:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323614#M271225</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-10T13:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: AMO Excel - How do I read table in SAS library and put results back to Excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323617#M271226</link>
      <description>Hi!&lt;BR /&gt;Good point, didn't think about this (the user in STP session isn't the same as the user used in AMO).&lt;BR /&gt;&lt;BR /&gt;I shall speak to my DBA,&lt;BR /&gt;&lt;BR /&gt;Thank you very much!&lt;BR /&gt;/Claes</description>
      <pubDate>Tue, 10 Jan 2017 13:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323617#M271226</guid>
      <dc:creator>Clash</dc:creator>
      <dc:date>2017-01-10T13:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: AMO Excel - How do I read table in SAS library and put results back to Excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323618#M271227</link>
      <description>&lt;P&gt;Keep in mind that there are possibly three UserIDs in play here:&lt;/P&gt;
&lt;P&gt;1) sassrv, a user on the OS level that physically runs the STP server processes&lt;/P&gt;
&lt;P&gt;2) the metadata user ID that is used to call the STP; this might even be an internal ID (no OS account assigned)&lt;/P&gt;
&lt;P&gt;3) the userid used from the AMO. Since the AMO most probably connects to a non-pooled workspace server, this userID needs to be in metadata and OS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) and 3) need physical access to the path, 2) and 3) need metadata permissions for the library.&lt;/P&gt;
&lt;P&gt;2) and 3) might be identical, of course&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 14:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323618#M271227</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-10T14:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: AMO Excel - How do I read table in SAS library and put results back to Excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323631#M271228</link>
      <description>Excellent, mange tack &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jan 2017 14:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/323631#M271228</guid>
      <dc:creator>Clash</dc:creator>
      <dc:date>2017-01-10T14:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: AMO Excel - How do I read table in SAS library and put results back to Excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/324986#M271229</link>
      <description>Solved!&lt;BR /&gt;Spoke to my DBA and he figured it out. The solution was to use the metadata name (library) instead of the its physical name, works like a Dream!</description>
      <pubDate>Mon, 16 Jan 2017 08:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AMO-Excel-How-do-I-read-table-in-SAS-library-and-put-results/m-p/324986#M271229</guid>
      <dc:creator>Clash</dc:creator>
      <dc:date>2017-01-16T08:35:28Z</dc:date>
    </item>
  </channel>
</rss>

