<?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 Working with caslibs in different cas servers in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Working-with-caslibs-in-different-cas-servers/m-p/894257#M2012</link>
    <description>&lt;P&gt;Consider this scenario:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We have a table X in the Caslib DB1 on the Cas server cas-shared-default-1 on the Viya server server1.ondemand.sas.com&lt;/P&gt;
&lt;P&gt;- We have a table Y in the Caslib DB2 on the Cas server cas-shared-default-2 on the Viya server server2.ondemand.sas.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working in Sas Studio e.g. on the server2 environment. I want to write an operation which involves both servers, i.e. a datastep which concatenates the tables X and Y:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data DB2.Z;
&amp;nbsp; set DB1.X DB2.Y;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That requires a working connection to both the cas servers at the same time, the concatenation calculation should happen on the server2 since I'm working there, the server1 should only be used to read the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clearly that should be performed entirely on memory, without "tricks" like downloading the table X in sas94, making a signon between the two sas94, and reloading the sas dataset in memory again on server2, that would be a complete waste of resources.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would you suggest to implement this, making sure that everything keeps working exclusively in the two Cas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 12:58:41 GMT</pubDate>
    <dc:creator>Edoedoedo</dc:creator>
    <dc:date>2023-09-14T12:58:41Z</dc:date>
    <item>
      <title>Working with caslibs in different cas servers</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Working-with-caslibs-in-different-cas-servers/m-p/894257#M2012</link>
      <description>&lt;P&gt;Consider this scenario:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We have a table X in the Caslib DB1 on the Cas server cas-shared-default-1 on the Viya server server1.ondemand.sas.com&lt;/P&gt;
&lt;P&gt;- We have a table Y in the Caslib DB2 on the Cas server cas-shared-default-2 on the Viya server server2.ondemand.sas.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working in Sas Studio e.g. on the server2 environment. I want to write an operation which involves both servers, i.e. a datastep which concatenates the tables X and Y:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data DB2.Z;
&amp;nbsp; set DB1.X DB2.Y;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That requires a working connection to both the cas servers at the same time, the concatenation calculation should happen on the server2 since I'm working there, the server1 should only be used to read the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clearly that should be performed entirely on memory, without "tricks" like downloading the table X in sas94, making a signon between the two sas94, and reloading the sas dataset in memory again on server2, that would be a complete waste of resources.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would you suggest to implement this, making sure that everything keeps working exclusively in the two Cas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 12:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Working-with-caslibs-in-different-cas-servers/m-p/894257#M2012</guid>
      <dc:creator>Edoedoedo</dc:creator>
      <dc:date>2023-09-14T12:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Working with caslibs in different cas servers</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Working-with-caslibs-in-different-cas-servers/m-p/894871#M2017</link>
      <description>&lt;P&gt;From my limited understanding, SAS/CONNECT is available in Viya to communicate between Viya servers (and with SAS 9.4 servers) in a similar way to how it works in SAS 9.4. Is this product available to you?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 01:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Working-with-caslibs-in-different-cas-servers/m-p/894871#M2017</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-19T01:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Working with caslibs in different cas servers</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Working-with-caslibs-in-different-cas-servers/m-p/894926#M2018</link>
      <description>&lt;P&gt;Another obvious (and therefore probably not feasible for you) is to make data available between the servers, e.g. using shares or similar.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 14:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Working-with-caslibs-in-different-cas-servers/m-p/894926#M2018</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-09-19T14:02:05Z</dc:date>
    </item>
  </channel>
</rss>

