<?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: load table from work to cas (with indexing) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579588#M170938</link>
    <description>&lt;P&gt;So here is what I understood:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;We have a table, 300,000,000 obs,&amp;nbsp; I guess something like 70-100GB&lt;BR /&gt;Where is the original data coming from?&lt;BR /&gt;Is there any processing before loading to CAS?&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;This table is loaded from a SAS Data Set to CAS table every night. An index should be created while loading.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;During the day, the CAS table will get new data, either append or update, input is a SAS Data Set again.&lt;BR /&gt;How many update operations?&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;At the end of the day the processing starts new&lt;BR /&gt;Will the CAS table simply be deleted?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your SAS Data Set would be in a directory accessible as a CAS library (path based) you can use the table.loadTable action and it will load and build the index at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 07:14:15 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2019-08-07T07:14:15Z</dc:date>
    <item>
      <title>load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/577309#M170931</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to load a tabel from work to public libname and I have to promote it in a global scope for reporting with VA.&lt;/P&gt;&lt;P&gt;I'm trying to use this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc cas;&lt;BR /&gt;session casauto;&lt;BR /&gt;table.loadTable /&lt;BR /&gt;path="tab_test.sas7bdat"&lt;BR /&gt;casout={name="tab_test" caslib="public" indexVars={"my_id"} replication=0 promote=true};&lt;BR /&gt;table.tableDetails / table="tab_test" caslib="public";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to load the table I have this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: BASE Data Connector, File tab_test does not exist or cannot be accessed.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: BASE Data Connector failed.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The action stopped due to errors.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The table tab_test could not be located in caslib Public of Cloud Analytic Services.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The action stopped due to errors.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I need an index on this large table and I haven't the space to load in memory and create the same table with the index.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Loading from work libname would be the solution.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Thanks for the help.&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jul 2019 09:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/577309#M170931</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2019-07-29T09:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/577740#M170932</link>
      <description>&lt;P&gt;This error indicates, that the file&amp;nbsp;&lt;SPAN&gt;tab_test.sas7bdat does not exist in the path of your current CAS library. You can use action table.fileinfo to check which files do exist in your CAS library.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/577740#M170932</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2019-07-30T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/578810#M170933</link>
      <description>Hello,&lt;BR /&gt;Excuse me for this delay.&lt;BR /&gt;The problem is that the table that I want to load isn’t in a CAS library, but in WORK library.&lt;BR /&gt;I need the proc cas to create an index.&lt;BR /&gt;Could I load the table and after create an index?&lt;BR /&gt;I need also to promote the table for visual analytics.</description>
      <pubDate>Fri, 02 Aug 2019 19:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/578810#M170933</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2019-08-02T19:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579094#M170934</link>
      <description>&lt;P&gt;To load a SAS Data set in SAS Library you use for instance Proc CASUTIL with the LOAD statement. Indexes defined on the SAS Data Set are not automatically created on the CAS table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See here for more information on indexes in CAS&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=caspg&amp;amp;docsetVersion=3.4&amp;amp;docsetTarget=p1xt9526uq5etwn1vmnk8koh0k6y.htm&amp;amp;locale=en#n0cew12u14mpyvn1tcb1upsyd48j"&gt;https://go.documentation.sas.com/?docsetId=caspg&amp;amp;docsetVersion=3.4&amp;amp;docsetTarget=p1xt9526uq5etwn1vmnk8koh0k6y.htm&amp;amp;locale=en#n0cew12u14mpyvn1tcb1upsyd48j&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest to try it first without using an index.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 10:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579094#M170934</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2019-08-05T10:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579097#M170935</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Yes I tried to apply an index but it seems that I must have two tables in-memory: the input table and the output table (with index).&lt;/P&gt;&lt;P&gt;This is a problem because the table is very large and I have not too much space to store two tabels in-memory.&lt;/P&gt;&lt;P&gt;The index is need to speedup the proc cas with the action "update", because I need to do a where to search what Item update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of the proc cas I haven't found any solution to update a table promoted in cas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a better way?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 11:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579097#M170935</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2019-08-05T11:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579105#M170936</link>
      <description>&lt;P&gt;I would choose one of the methods listed in the doc where you create an index while loading from a file in a CAS Library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tell us a bit more about your use case like where does the data come from, what happens to the data before it is loaded to CAS and why does it need to be update frequently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 11:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579105#M170936</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2019-08-05T11:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579109#M170937</link>
      <description>&lt;P&gt;Ok, following the use case:&lt;/P&gt;&lt;P&gt;I have a large table in CAS (300,000,000 rows).&lt;/P&gt;&lt;P&gt;I need to update it with a transactional dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do this i wrote a program: the new rows are appended. The rows that I have to update are updated by a datastep that reads the rows from the transactional dataset and foreach row does a call execute that create a proc cas with an update action.&lt;/P&gt;&lt;P&gt;To do this with an index would be better for performance.&lt;/P&gt;&lt;P&gt;Scheduled once in the night I have a program that drop the master table e recreate it.&lt;/P&gt;&lt;P&gt;The problem is to create it without an input table in CAS (in RAM).&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 12:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579109#M170937</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2019-08-05T12:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579588#M170938</link>
      <description>&lt;P&gt;So here is what I understood:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;We have a table, 300,000,000 obs,&amp;nbsp; I guess something like 70-100GB&lt;BR /&gt;Where is the original data coming from?&lt;BR /&gt;Is there any processing before loading to CAS?&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;This table is loaded from a SAS Data Set to CAS table every night. An index should be created while loading.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;During the day, the CAS table will get new data, either append or update, input is a SAS Data Set again.&lt;BR /&gt;How many update operations?&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;At the end of the day the processing starts new&lt;BR /&gt;Will the CAS table simply be deleted?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your SAS Data Set would be in a directory accessible as a CAS library (path based) you can use the table.loadTable action and it will load and build the index at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 07:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579588#M170938</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2019-08-07T07:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: load table from work to cas (with indexing)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579596#M170939</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the table is large: forecast on the size is up to 300GB.&lt;/P&gt;&lt;P&gt;The process is an ETL to extract and transform data from Oracle. The ETL is scheduled about every 5 minutes.&lt;/P&gt;&lt;P&gt;Every 5 minutes it needs to update only some rows and append the new rows.&lt;/P&gt;&lt;P&gt;Input is a dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #283138; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;How many update operations?&lt;/SPAN&gt; Near to 15000 updates every 5 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end of the day the entire table must be refreshed (drop and create).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-table-from-work-to-cas-with-indexing/m-p/579596#M170939</guid>
      <dc:creator>AsSASsin</dc:creator>
      <dc:date>2019-08-07T08:20:08Z</dc:date>
    </item>
  </channel>
</rss>

