<?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: How do I merge two tables located on two different servers in SAS Enterprise Guide? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531890#M145677</link>
    <description>&lt;P&gt;Okay, I think I know what to do here.&amp;nbsp; I'll try it out tomorrow and let you know how it goes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When you say&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;libname&lt;/SPAN&gt; SVR1 &lt;SPAN class="token string"&gt;'\\SERVER1\path'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You simply mean the libname statement that I can look up in SAS Console Manager.&amp;nbsp; Correct?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 05:27:29 GMT</pubDate>
    <dc:creator>BarryP</dc:creator>
    <dc:date>2019-02-01T05:27:29Z</dc:date>
    <item>
      <title>How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531491#M145465</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;in SAS Enterprise Guide I am required to select which server I am working in using the drop down at the top of the page.&amp;nbsp; What if I wanted to merge tables from different servers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If they are on the same server, I would select it and write:&lt;BR /&gt;&lt;BR /&gt;Data Table_I_Want;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;merge LIBID1.Table_I_Have1 LIBID2.Table_I_Have2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;by Common_Field;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 22:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531491#M145465</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2019-01-30T22:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531500#M145467</link>
      <description>&lt;P&gt;You can’t in EG, but you can in Base SAS - with a caution, it downloads both of the data sets to do the merge so it’s not super efficient.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84517"&gt;@BarryP&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;in SAS Enterprise Guide I am required to select which server I am working in using the drop down at the top of the page.&amp;nbsp; What if I wanted to merge tables from different servers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If they are on the same server, I would select it and write:&lt;BR /&gt;&lt;BR /&gt;Data Table_I_Want;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;merge LIBID1.Table_I_Have1 LIBID2.Table_I_Have2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;by Common_Field;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 23:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531500#M145467</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-30T23:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531501#M145468</link>
      <description>&lt;P&gt;All the data needs to be on the same server to be merged.&lt;/P&gt;
&lt;P&gt;So you must move data sets. There are several ways to do this, but this is an inescapable requirement.&lt;/P&gt;
&lt;P&gt;Can you use SAS/Connect to connect from one server to the other?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works like this:&lt;/P&gt;
&lt;P&gt;choose SERVER1 from the dropdown menu in EG&lt;/P&gt;
&lt;P&gt;and submit:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;signon SERVER2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This will make SERVER1 try to connect to SERVER2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to supply the correct connection parameters.&lt;/P&gt;
&lt;P&gt;Ask your administrator if SAS/Connect is available, and what the parameters are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, you have to copy the data manually from one server to the other, either via Windows explorer or via EG (copy and paste). This can be very slow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 23:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531501#M145468</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-01-30T23:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531502#M145469</link>
      <description>&lt;P&gt;A third way would be to define a UNC libname.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example run this on SERVER1:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;libname SVR2 '\\SERVER2\path';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 23:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531502#M145469</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-01-30T23:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531861#M145669</link>
      <description>&lt;P&gt;Thanks for the help, but I still don't understand how I would do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm on server1 and type:&lt;BR /&gt;&lt;BR /&gt;set Library_Name.Table&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Its going to assume that the library is on server1.&amp;nbsp; How would I get it to server2?&amp;nbsp; Or how would I copy from server2 into the work library of server1?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Right now the only thing I would know how to export the table from server2 and then use the import wizard to get it back into server1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 02:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531861#M145669</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2019-02-01T02:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531863#M145670</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname SVR1 '\\SERVER1\path';
libname SVR2 '\\SERVER2\path';
data MERGED;
  merge SVR1.TAB1 
        SVR2.TAB2;
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 02:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531863#M145670</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-01T02:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531890#M145677</link>
      <description>&lt;P&gt;Okay, I think I know what to do here.&amp;nbsp; I'll try it out tomorrow and let you know how it goes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When you say&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;libname&lt;/SPAN&gt; SVR1 &lt;SPAN class="token string"&gt;'\\SERVER1\path'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You simply mean the libname statement that I can look up in SAS Console Manager.&amp;nbsp; Correct?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 05:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/531890#M145677</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2019-02-01T05:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/532445#M145893</link>
      <description>&lt;P&gt;I don't know what you have in your Console manager.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the local library.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 20:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/532445#M145893</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-03T20:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two tables located on two different servers in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/532467#M145900</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84517"&gt;@BarryP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For merging/joining all the data must be on the same server (your Server1).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can either find a way to issue libname statements which can access all the data you need - the libnames with UNC paths as proposed. That's the easiest way if it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have SAS/Connect licensed then you can also use remote library services. Such a library definition allows you to transparently access data via a remote SAS server (your Server2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How this works is documented here (the SAS/Connect client in the docu is your Server1 to which you connect via SAS EG):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=connref&amp;amp;docsetTarget=p12j8b6w2nuxpon15xu0fqsisfkk.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&amp;nbsp;" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=connref&amp;amp;docsetTarget=p12j8b6w2nuxpon15xu0fqsisfkk.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 23:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-tables-located-on-two-different-servers-in/m-p/532467#M145900</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-03T23:34:54Z</dc:date>
    </item>
  </channel>
</rss>

