<?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 Error while creating SAS object in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Multiple-value-selection-from-excel-sheet-for-Multivlued-prompt/m-p/188366#M4386</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;I wrote following code to create a dataset from excel data which was supposed to be a prompt values. &lt;/P&gt;&lt;P&gt;This dataset is then input to respective Stored Process. This way I'm able to automate this process.&lt;/P&gt;&lt;P&gt;But problem is that it only works from my ID or other admin's id and not with other common SAS user's id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function GetInput() As Boolean&lt;/P&gt;&lt;P&gt;Dim sasObjectFactory As New SASObjectManager.ObjectFactory&lt;/P&gt;&lt;P&gt;Dim obSAS As SAS.Workspace&lt;/P&gt;&lt;P&gt;Dim ServerDef As New SASObjectManager.ServerDef&lt;/P&gt;&lt;P&gt;Dim sasObj As SASExcelAddIn&lt;/P&gt;&lt;P&gt;Dim SASCode As String&lt;/P&gt;&lt;P&gt;SASCode = GetDataStep()&lt;/P&gt;&lt;P&gt;If Trim(SASCode) &amp;lt;&amp;gt; "" Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sasObj = Application.COMAddIns.Item("sas.ExcelAddIn").Object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerDef.MachineDNSName = sasObj.ActiveProfile.HostName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerDef.Port = sasObj.ActiveProfile.Port&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sasObjectFactory = New SASObjectManager.ObjectFactory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obSAS = sasObjectFactory.CreateObjectByServer(sasObj.ActiveProfile.Name, True, ServerDef, "", "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sasLanguageEvent = obSAS.LanguageService&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sasLanguageEvent.Submit (SASCode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetInput = True&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Please provide Mamber Ids for this report in Column A", vbInformation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveSheet.Range("A3").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetInput = False&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code gives following error when tried to execute from other user's id:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WorkspaceError.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8279_WorkspaceError.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or suggestion on this will be much appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2014 20:23:01 GMT</pubDate>
    <dc:creator>Dreamer</dc:creator>
    <dc:date>2014-12-08T20:23:01Z</dc:date>
    <item>
      <title>Multiple value selection from excel sheet for Multivlued prompt</title>
      <link>https://communities.sas.com/t5/Developers/Multiple-value-selection-from-excel-sheet-for-Multivlued-prompt/m-p/188365#M4385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to generate a report for selected group ids from a list of group ids in the sheet.&lt;/P&gt;&lt;P&gt;GroupID&lt;/P&gt;&lt;P&gt;123&lt;/P&gt;&lt;P&gt;456&lt;/P&gt;&lt;P&gt;789&lt;/P&gt;&lt;P&gt;012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have developed a stored procedure with multiple value prompt for Group id, which I call from Excel using SAS office Add In to do this. But since its a big list and its not a good user experience to add them one by one manually in the prompt dialog box.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;So is there a solution where user can select multiple ids from this Group Id list and prompt get those values automatically. &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Btw I also tried using input stream "_webin_sasname". But challenge here is that user has to select header (Group id) also and items provided should be continuous to header cell. Basically complete row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 17:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Multiple-value-selection-from-excel-sheet-for-Multivlued-prompt/m-p/188365#M4385</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2014-09-05T17:23:16Z</dc:date>
    </item>
    <item>
      <title>Error while creating SAS object</title>
      <link>https://communities.sas.com/t5/Developers/Multiple-value-selection-from-excel-sheet-for-Multivlued-prompt/m-p/188366#M4386</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;I wrote following code to create a dataset from excel data which was supposed to be a prompt values. &lt;/P&gt;&lt;P&gt;This dataset is then input to respective Stored Process. This way I'm able to automate this process.&lt;/P&gt;&lt;P&gt;But problem is that it only works from my ID or other admin's id and not with other common SAS user's id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function GetInput() As Boolean&lt;/P&gt;&lt;P&gt;Dim sasObjectFactory As New SASObjectManager.ObjectFactory&lt;/P&gt;&lt;P&gt;Dim obSAS As SAS.Workspace&lt;/P&gt;&lt;P&gt;Dim ServerDef As New SASObjectManager.ServerDef&lt;/P&gt;&lt;P&gt;Dim sasObj As SASExcelAddIn&lt;/P&gt;&lt;P&gt;Dim SASCode As String&lt;/P&gt;&lt;P&gt;SASCode = GetDataStep()&lt;/P&gt;&lt;P&gt;If Trim(SASCode) &amp;lt;&amp;gt; "" Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sasObj = Application.COMAddIns.Item("sas.ExcelAddIn").Object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerDef.MachineDNSName = sasObj.ActiveProfile.HostName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerDef.Port = sasObj.ActiveProfile.Port&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sasObjectFactory = New SASObjectManager.ObjectFactory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obSAS = sasObjectFactory.CreateObjectByServer(sasObj.ActiveProfile.Name, True, ServerDef, "", "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sasLanguageEvent = obSAS.LanguageService&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sasLanguageEvent.Submit (SASCode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetInput = True&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Please provide Mamber Ids for this report in Column A", vbInformation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveSheet.Range("A3").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetInput = False&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code gives following error when tried to execute from other user's id:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WorkspaceError.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8279_WorkspaceError.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or suggestion on this will be much appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 20:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Multiple-value-selection-from-excel-sheet-for-Multivlued-prompt/m-p/188366#M4386</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2014-12-08T20:23:01Z</dc:date>
    </item>
  </channel>
</rss>

