<?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: CAS table is too big in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733903#M228684</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98095"&gt;@Muandre&lt;/a&gt;&amp;nbsp; - Your experience mirrors ours with the SAS VA LASR servers on SAS 9. You trim character variables to optimal length rather than compressing datasets.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 19:55:16 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-04-14T19:55:16Z</dc:date>
    <item>
      <title>CAS table is too big</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733613#M228569</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uploading und promoting my 800 MB SAS table leads to a 50 GB CAS table. What is my mistake?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cas;&lt;BR /&gt;caslib _ALL_ assign;&lt;/P&gt;&lt;P&gt;libname BIB1 oracle uid=*** user=*** ... ;&lt;/P&gt;&lt;P&gt;data work.test(compress=yes);&lt;BR /&gt;set BIB1.ds;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc casutil;&lt;BR /&gt;load data=work.test outcaslib="public"&lt;BR /&gt;casout="test" promote;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 04:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733613#M228569</guid>
      <dc:creator>Muandre</dc:creator>
      <dc:date>2021-04-14T04:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: CAS table is too big</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733614#M228570</link>
      <description>&lt;P&gt;I suspect CAS tables are not compressed. What is the size of your SAS WORK table test when uncompressed.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 04:43:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733614#M228570</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-14T04:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: CAS table is too big</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733622#M228571</link>
      <description>&lt;P&gt;my sas work.test table is uncompressed 30 GB. What is the correct comress-way to load the compressed table to CAS?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 05:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733622#M228571</guid>
      <dc:creator>Muandre</dc:creator>
      <dc:date>2021-04-14T05:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: CAS table is too big</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733629#M228575</link>
      <description>&lt;P&gt;CAS is built for speed and not for space, so compression is not wanted.&lt;/P&gt;
&lt;P&gt;Get to know your data better; since you have a rather high compression ratio, this points to character variables that are defined longer than needed.&lt;/P&gt;
&lt;P&gt;Inspect your charvars like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select max(length(charvar)) from have;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so you can do corrections of defined lengths before uploading to CAS; you can also check if there is a problem in your data import process that leads to overlong defined character variables (import from Excel tends to do that).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 06:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733629#M228575</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-14T06:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: CAS table is too big</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733631#M228576</link>
      <description>&lt;P&gt;According to the &lt;A href="https://documentation.sas.com/doc/en/casref/v_001/n03spmi9ixzq5pn11lneipfwyu8b.htm#p1gvn79hc0o7izn1egadg659q6da" target="_blank" rel="noopener"&gt;doc&lt;/A&gt; try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc casutil;
load data=work.test (compress) outcaslib="public"
casout="test" promote;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733631#M228576</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-14T07:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: CAS table is too big</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733709#M228625</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98095"&gt;@Muandre&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We ran into the same problem and found out that CAS supports the data type VARCHAR, so we dropped all experiments with compress.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We write the CAS table with a data step that defines new CAS variables with following statements:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;length newvar varchar(n);&amp;nbsp; *where n = longes string in input;&lt;/LI&gt;
&lt;LI&gt;newvar = oldvar;&lt;/LI&gt;
&lt;LI&gt;drop oldvar;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;and so on..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In our setup the code is built into a DI Studio transformation that generates the data step from the actual input column specifications with proc execute. The incoming variables are renamed in the set statement, so the original names can be reused as new variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 12:56:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733709#M228625</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2021-04-14T12:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: CAS table is too big</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733746#M228637</link>
      <description>&lt;P&gt;Thank you - our experiments with compress in proc casutil didn't help (well - they helped with size but as I learnt today: "&lt;SPAN style="font-weight: bold;"&gt;CAS is built for speed and not for space, so compression is not wanted."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Working with length in our oracle-view helped &amp;lt;3. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 13:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733746#M228637</guid>
      <dc:creator>Muandre</dc:creator>
      <dc:date>2021-04-14T13:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: CAS table is too big</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733903#M228684</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98095"&gt;@Muandre&lt;/a&gt;&amp;nbsp; - Your experience mirrors ours with the SAS VA LASR servers on SAS 9. You trim character variables to optimal length rather than compressing datasets.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 19:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-table-is-too-big/m-p/733903#M228684</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-14T19:55:16Z</dc:date>
    </item>
  </channel>
</rss>

