<?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: sas cas-in memory table in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837991#M16552</link>
    <description>hello Koen&lt;BR /&gt;&lt;BR /&gt;please ignore my previous post it is working thank you .&lt;BR /&gt;</description>
    <pubDate>Wed, 12 Oct 2022 08:52:44 GMT</pubDate>
    <dc:creator>vallsas</dc:creator>
    <dc:date>2022-10-12T08:52:44Z</dc:date>
    <item>
      <title>sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837126#M16527</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following code is loaded the table (xx.sashdat) into CAS but not as in-memory table .&lt;/P&gt;&lt;P&gt;(this code we run in sas studo viya).&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA TEST;&lt;BR /&gt;INPUT A B;&lt;BR /&gt;CARDS;&lt;BR /&gt;1 2&lt;BR /&gt;2 3&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;BR /&gt;proc casutil ;&lt;BR /&gt;load data="TEST" outcaslib="public"&lt;BR /&gt;casout="MTEST";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc casutil ;&lt;BR /&gt;save casdata="MTEST" replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anybody face this kind of problem?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 07:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837126#M16527</guid>
      <dc:creator>vallsas</dc:creator>
      <dc:date>2022-10-06T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837141#M16528</link>
      <description>&lt;P&gt;Your proc casutil code with the load data option t&lt;SPAN&gt;ransfers SAS data from the SAS Compute Server (work library) to SAS Cloud Analytic Services (the public CAS library). You should find, that the MTEST is indeed loaded to in-memory located in the public cas library (though, it is only available for your cas session):&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc casutil ;
load data="TEST" outcaslib="public"
casout="MTEST";
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your next proc casutil, where you save the dataset, you will need to use the incaslib= option to point to your public dataset:&lt;/P&gt;
&lt;PRE&gt;proc casutil;&lt;BR /&gt;save incaslib="public" casdata="MTEST" replace;&lt;BR /&gt;quit;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your dataset is now saved to the same CAS library it's already in as a .SASHDAT file. More information can be found here:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/vdmmlcdc/8.1/casref/n1fujq5fhyeiprn1whq1iva21obo.htm" target="_blank"&gt;SAS Help Center: Syntax: PROC CASUTIL SAVE Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to access the in-memory dataset from another cas session you will have to promote the table. That can for example be done like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc casutil outcaslib="public";
	promote casdata="MTEST" incaslib="public";
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope this solves your issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 09:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837141#M16528</guid>
      <dc:creator>Mike_j</dc:creator>
      <dc:date>2022-10-06T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837142#M16529</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/65449"&gt;@vallsas&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The following code is loaded the table (xx.sashdat) into CAS but not as in-memory table .&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;into CAS but not as in-memory table ??&lt;BR /&gt;That's a strange statement. I guess it's in-memory but not available to all users / CAS-sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Promoting the table might be the solution !&lt;/P&gt;
&lt;P&gt;See here :&lt;/P&gt;
&lt;P&gt;SAS® 9.4 and SAS® Viya® 3.5 Programming Documentation | SAS 9.4 / Viya 3.5&lt;BR /&gt;CAS User’s Guide&lt;BR /&gt;CASUTIL Procedure&lt;BR /&gt;PROMOTE Statement&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/casref/p1742zxo50czfgn1czlo8w3w58mt.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/casref/p1742zxo50czfgn1czlo8w3w58mt.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 09:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837142#M16529</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-06T09:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837630#M16544</link>
      <description>&lt;P&gt;Thank you very much for the information.&lt;/P&gt;&lt;P&gt;proc casutil outcaslib="public";&lt;/P&gt;&lt;P&gt;promote casdata="MTEST" incaslib="public";&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=""&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE class=""&gt;&lt;CODE&gt;proc casutil outcaslib="public";
	promote casdata="MTEST" incaslib="public";
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;after using the above code I can see the table has been loaded as in-memory table in the target cas library. but the problem is if I want to replace by executing the same code in sasstudio i am getting error as table already exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: There is no session-scope table xxxx in caslib test_cas_data of could analytic services.&lt;/P&gt;&lt;P&gt;ERROR: The action stopped due to errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I unlod the table by manually then run the above code of proc then table loaded as in-memory table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused how come the able in showing as in studo as in-memory table (with symbol) mycas of libraries .&lt;/P&gt;&lt;P&gt;on the same if I go&amp;nbsp; environment manager and tables then my cas library the able is only available .sashdat table, not as in-memory table copy.(as when we load the table two copies one physical .sashdat , and memory table as cas with same name).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 10:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837630#M16544</guid>
      <dc:creator>vallsas</dc:creator>
      <dc:date>2022-10-10T10:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837633#M16545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV class="xisDoc-refBlock"&gt;
&lt;P class="xisDoc-shortDescription"&gt;The PROMOTE statement copies a session-scope table to global scope.&lt;/P&gt;
&lt;SECTION class="xisDoc-tableWrap"&gt;
&lt;TABLE class="xisDoc-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-summaryNote"&gt;Note:&lt;/TH&gt;
&lt;TD class="xisDoc-summaryText"&gt;The PROMOTE statement does not include a &lt;FONT style="background-color: #fcdec0;"&gt;REPLACE&lt;/FONT&gt; option. The server does not support promoting a session-scope table and replacing a global-scope table in one operation. You must drop the global-scope table first.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hence, ... before replacing your table you can submit :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library=PUBLIC NoList memtype=DATA;
	delete MTEST; run;
quit;

/* ** OR ** */
proc casutil incaslib="PUBLIC";
   droptable casdata="MTEST" quiet;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Oct 2022 11:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837633#M16545</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-10T11:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837818#M16549</link>
      <description>Thanks Koen,&lt;BR /&gt;proc datasets library=mydatt_cas_data NoList memtype=DATA;&lt;BR /&gt;delete MTEST; run;&lt;BR /&gt;quit;&lt;BR /&gt;ERROR : mydatt_cas_data is not valid name&lt;BR /&gt;&lt;BR /&gt;i already creaed as pathbased library in cas as mydatt_cas_data where i used to save the all cas tables.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Oct 2022 11:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837818#M16549</guid>
      <dc:creator>vallsas</dc:creator>
      <dc:date>2022-10-11T11:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837827#M16550</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can make a new "ABC" libref pointing to the same CASLIB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like here :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;caslib mydatt_cas_data datasource=(srctype="path") path="/tmp";
libname CAS abc caslib=mydatt_cas_data;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use ABC in PROC DATASETS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 12:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837827#M16550</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-11T12:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837981#M16551</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;little change in the order in the libaname&lt;BR /&gt;libname abc cas caslib=mydatt_cas_data;&lt;BR /&gt;but this time i have problem of saving table&lt;BR /&gt;proc casutil;&lt;BR /&gt;save casdata="xxxx" incaslib="xxxx" outcaslib="xxxx" casout="xxxx" replace;&lt;BR /&gt;quit;&lt;BR /&gt;ERROR: The action stopped due to errors&lt;BR /&gt;ERROR: Failed to save the table "xxxxx" from the "xxxx" caslib to the "xxxxx" caslib&lt;BR /&gt;here from and to caslibs are same.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Oct 2022 05:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837981#M16551</guid>
      <dc:creator>vallsas</dc:creator>
      <dc:date>2022-10-12T05:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: sas cas-in memory table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837991#M16552</link>
      <description>hello Koen&lt;BR /&gt;&lt;BR /&gt;please ignore my previous post it is working thank you .&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Oct 2022 08:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/sas-cas-in-memory-table/m-p/837991#M16552</guid>
      <dc:creator>vallsas</dc:creator>
      <dc:date>2022-10-12T08:52:44Z</dc:date>
    </item>
  </channel>
</rss>

