<?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 does SAS VIYA sync the tables created on CASLIB from the database? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-VIYA-sync-the-tables-created-on-CASLIB-from-the/m-p/944248#M370001</link>
    <description>&lt;P&gt;Short answer:&lt;BR /&gt;SAS Viya&amp;nbsp;&lt;EM&gt;does not synchronize&amp;nbsp;&lt;/EM&gt;in-memory tables with the caslib data source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Long explanation:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a functional description of how caslibs work. Caslibs have two related (but not synchronized) locations for data:&lt;BR /&gt;1. Source&amp;nbsp;&lt;STRONG&gt;files&lt;/STRONG&gt;. No matter the format of the source where a caslib physically stores data, all data in that location are referred to as &lt;STRONG&gt;files. Files&lt;/STRONG&gt;&amp;nbsp;cannot be processed in CAS.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;STRONG&gt;Tables&lt;/STRONG&gt;. CAS &lt;STRONG&gt;tables&lt;/STRONG&gt;&amp;nbsp;always reside in memory and can be processed in CAS. They are not directly associated with a particular file.&lt;/P&gt;
&lt;P&gt;To process data from a file in CAS, you must first &lt;EM&gt;load&lt;/EM&gt; the file as a table (copy the data from the file into memory). The in-memory copy is the CAS table. You can process the table in CAS. If you make changes to the table and want to make the changes persistent, you must&amp;nbsp;&lt;EM&gt;save&lt;/EM&gt; the table to a file to a caslib's data source. You can save it to any caslib's data source you wish - it's not linked in any way to the original file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example, consider a CAS session with two caslibs - CASUSER, a file-based caslib, and CASDB, a caslib connected to an oracle schema named &lt;STRONG&gt;myDBMS&lt;/STRONG&gt;. I load &lt;STRONG&gt;mydata.csv&lt;/STRONG&gt; file from my CASUSER caslib to an in-memory table named &lt;STRONG&gt;myCasTable&lt;/STRONG&gt;&amp;nbsp;in the CASUSER library (&lt;STRONG&gt;casuser.myCasTable&lt;/STRONG&gt;). I manipulate &lt;STRONG&gt;casuser.myCasTable&lt;/STRONG&gt; to clean and prep the data. Then I save the data to the CASDB "files" as &lt;STRONG&gt;myDBTable&lt;/STRONG&gt;.&amp;nbsp; If you now query Oracle using sqlplus, you will find a new table named &lt;STRONG&gt;myDBMS.myDBTable&lt;/STRONG&gt; containing the same information as the CAS table &lt;STRONG&gt;casuser.myCasTable&lt;/STRONG&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 12:27:28 GMT</pubDate>
    <dc:creator>SASJedi</dc:creator>
    <dc:date>2024-09-17T12:27:28Z</dc:date>
    <item>
      <title>How does SAS VIYA sync the tables created on CASLIB from the database?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-VIYA-sync-the-tables-created-on-CASLIB-from-the/m-p/944199#M370000</link>
      <description>&lt;P&gt;Hi Communities,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you created a New connection to connect to database from SAS EVM, how does SAS VIYA sync the tables created on CASLIB from the database? Is it real-time? Or is there a job that keeps the tables updated?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 07:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-VIYA-sync-the-tables-created-on-CASLIB-from-the/m-p/944199#M370000</guid>
      <dc:creator>jbond007</dc:creator>
      <dc:date>2024-09-17T07:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS VIYA sync the tables created on CASLIB from the database?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-VIYA-sync-the-tables-created-on-CASLIB-from-the/m-p/944248#M370001</link>
      <description>&lt;P&gt;Short answer:&lt;BR /&gt;SAS Viya&amp;nbsp;&lt;EM&gt;does not synchronize&amp;nbsp;&lt;/EM&gt;in-memory tables with the caslib data source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Long explanation:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a functional description of how caslibs work. Caslibs have two related (but not synchronized) locations for data:&lt;BR /&gt;1. Source&amp;nbsp;&lt;STRONG&gt;files&lt;/STRONG&gt;. No matter the format of the source where a caslib physically stores data, all data in that location are referred to as &lt;STRONG&gt;files. Files&lt;/STRONG&gt;&amp;nbsp;cannot be processed in CAS.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;STRONG&gt;Tables&lt;/STRONG&gt;. CAS &lt;STRONG&gt;tables&lt;/STRONG&gt;&amp;nbsp;always reside in memory and can be processed in CAS. They are not directly associated with a particular file.&lt;/P&gt;
&lt;P&gt;To process data from a file in CAS, you must first &lt;EM&gt;load&lt;/EM&gt; the file as a table (copy the data from the file into memory). The in-memory copy is the CAS table. You can process the table in CAS. If you make changes to the table and want to make the changes persistent, you must&amp;nbsp;&lt;EM&gt;save&lt;/EM&gt; the table to a file to a caslib's data source. You can save it to any caslib's data source you wish - it's not linked in any way to the original file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example, consider a CAS session with two caslibs - CASUSER, a file-based caslib, and CASDB, a caslib connected to an oracle schema named &lt;STRONG&gt;myDBMS&lt;/STRONG&gt;. I load &lt;STRONG&gt;mydata.csv&lt;/STRONG&gt; file from my CASUSER caslib to an in-memory table named &lt;STRONG&gt;myCasTable&lt;/STRONG&gt;&amp;nbsp;in the CASUSER library (&lt;STRONG&gt;casuser.myCasTable&lt;/STRONG&gt;). I manipulate &lt;STRONG&gt;casuser.myCasTable&lt;/STRONG&gt; to clean and prep the data. Then I save the data to the CASDB "files" as &lt;STRONG&gt;myDBTable&lt;/STRONG&gt;.&amp;nbsp; If you now query Oracle using sqlplus, you will find a new table named &lt;STRONG&gt;myDBMS.myDBTable&lt;/STRONG&gt; containing the same information as the CAS table &lt;STRONG&gt;casuser.myCasTable&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 12:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-VIYA-sync-the-tables-created-on-CASLIB-from-the/m-p/944248#M370001</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2024-09-17T12:27:28Z</dc:date>
    </item>
  </channel>
</rss>

