<?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: Connecting to SAS fomr Excel/VBA in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Connecting-to-SAS-fomr-Excel-VBA/m-p/607141#M2452</link>
    <description>&lt;P&gt;Hey &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15329"&gt;@PhilC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched, "sas integration technologies client documentation", which led me here:&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/itech/doc9/dev_guide/index.html" target="_self"&gt;https://support.sas.com/rnd/itech/doc9/dev_guide/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;...then to here:&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/index.html" target="_self"&gt;https://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/index.html&lt;/A&gt;&lt;BR /&gt;...and to some code samples:&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/omsamples.html" target="_self"&gt;https://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/omsamples.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example above, the error is (as it says) a result of attempting to connect to a metadata server (usually port 8561) instead of a workspace server.&amp;nbsp; If you change the port to the workspace server port (usually 8591), it should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ps- Sorry for the delayed response,&amp;nbsp;I've fallen behind on Communities lately due to another project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 23:17:14 GMT</pubDate>
    <dc:creator>CaseySmith</dc:creator>
    <dc:date>2019-11-25T23:17:14Z</dc:date>
    <item>
      <title>Connecting to SAS fomr Excel/VBA</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Connecting-to-SAS-fomr-Excel-VBA/m-p/48757#M722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have a bunch of Excel/VBA-programs to do our reporting.&lt;/P&gt;&lt;P&gt;Our data we select from a SQL-DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we changed our DB to SAS.&lt;/P&gt;&lt;P&gt;I'm now trying to connect to SAS to use the reporting as it is, but the connection doesn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following code to build up a connection to SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim obObjectFactory As New SASObjectManager.ObjectFactory&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim obServer As New SASObjectManager.ServerDef&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sasWS As sas.Workspace&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obServer.MachineDNSName = "lcub1sa"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obServer.Protocol = SASObjectManager.Protocols.ProtocolBridge&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obServer.Port = 18561&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sasWS = obObjectFactory.CreateObjectByServer("My_Prod_Data", True, obServer, "myusername", "mypassword")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;When running this code i get an exception &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"SASMessage severity = "Error" : The client has connected to a SAS (9.2) Metadata Server (v1.0) when it intended to connect to a SAS Workspace Server."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas to avoid this exception and to set up a valid connection are wellcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Achim Müller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Connecting-to-SAS-fomr-Excel-VBA/m-p/48757#M722</guid>
      <dc:creator>amueller11</dc:creator>
      <dc:date>2011-11-16T16:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to SAS fomr Excel/VBA</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Connecting-to-SAS-fomr-Excel-VBA/m-p/588514#M2404</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15089"&gt;@CaseySmith&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to answer this question.&amp;nbsp; My Google skills are weak.&amp;nbsp; Is there a good search term you'd recommend?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 13:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Connecting-to-SAS-fomr-Excel-VBA/m-p/588514#M2404</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2019-09-13T13:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to SAS fomr Excel/VBA</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Connecting-to-SAS-fomr-Excel-VBA/m-p/607141#M2452</link>
      <description>&lt;P&gt;Hey &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15329"&gt;@PhilC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched, "sas integration technologies client documentation", which led me here:&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/itech/doc9/dev_guide/index.html" target="_self"&gt;https://support.sas.com/rnd/itech/doc9/dev_guide/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;...then to here:&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/index.html" target="_self"&gt;https://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/index.html&lt;/A&gt;&lt;BR /&gt;...and to some code samples:&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/omsamples.html" target="_self"&gt;https://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/omsamples.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example above, the error is (as it says) a result of attempting to connect to a metadata server (usually port 8561) instead of a workspace server.&amp;nbsp; If you change the port to the workspace server port (usually 8591), it should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ps- Sorry for the delayed response,&amp;nbsp;I've fallen behind on Communities lately due to another project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 23:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Connecting-to-SAS-fomr-Excel-VBA/m-p/607141#M2452</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-11-25T23:17:14Z</dc:date>
    </item>
  </channel>
</rss>

