<?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 Load and Unload datatable in sas viya caslib in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Load-and-Unload-datatable-in-sas-viya-caslib/m-p/909461#M358714</link>
    <description>&lt;P&gt;Hi guys... I have connectivity with Sql Srv database using Odbc connectivity. To load and unload data automatically on daily basis i m traying to write below code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/* Unload data from source table */&lt;BR /&gt;PROC CASUTIL;&lt;BR /&gt;ALTERTABLE CASDATA="Feedback_data" INCASLIB="test123" CASOUT="feedback_data" INCASLIB="test123";&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;/* Load data into destination table from SAS data set */&lt;BR /&gt;PROC CASUTIL;&lt;BR /&gt;LOAD CASDATA="SAS-data-set" INCASLIB="test123" CASOUT="feedback_data" OUTCASLIB="test123";&lt;BR /&gt;QUIT;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but I am Getting below error..&lt;/P&gt;&lt;DIV class=""&gt;ERROR: A connection to the Cloud Analytic Services session could not be made.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: An error has occurred.&lt;/DIV&gt;&lt;DIV class=""&gt;90 LOAD CASDATA="SAS-data-set" INCASLIB="test123" CASOUT="feedback_data" OUTCASLIB="test123";&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: An error has occurred.&lt;BR /&gt;&lt;BR /&gt;how to make connection to caslib ?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 11:22:51 GMT</pubDate>
    <dc:creator>SatishR</dc:creator>
    <dc:date>2023-12-22T11:22:51Z</dc:date>
    <item>
      <title>Load and Unload datatable in sas viya caslib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Load-and-Unload-datatable-in-sas-viya-caslib/m-p/909461#M358714</link>
      <description>&lt;P&gt;Hi guys... I have connectivity with Sql Srv database using Odbc connectivity. To load and unload data automatically on daily basis i m traying to write below code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/* Unload data from source table */&lt;BR /&gt;PROC CASUTIL;&lt;BR /&gt;ALTERTABLE CASDATA="Feedback_data" INCASLIB="test123" CASOUT="feedback_data" INCASLIB="test123";&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;/* Load data into destination table from SAS data set */&lt;BR /&gt;PROC CASUTIL;&lt;BR /&gt;LOAD CASDATA="SAS-data-set" INCASLIB="test123" CASOUT="feedback_data" OUTCASLIB="test123";&lt;BR /&gt;QUIT;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but I am Getting below error..&lt;/P&gt;&lt;DIV class=""&gt;ERROR: A connection to the Cloud Analytic Services session could not be made.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: An error has occurred.&lt;/DIV&gt;&lt;DIV class=""&gt;90 LOAD CASDATA="SAS-data-set" INCASLIB="test123" CASOUT="feedback_data" OUTCASLIB="test123";&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: An error has occurred.&lt;BR /&gt;&lt;BR /&gt;how to make connection to caslib ?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 11:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Load-and-Unload-datatable-in-sas-viya-caslib/m-p/909461#M358714</guid>
      <dc:creator>SatishR</dc:creator>
      <dc:date>2023-12-22T11:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load and Unload datatable in sas viya caslib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Load-and-Unload-datatable-in-sas-viya-caslib/m-p/909470#M358716</link>
      <description>&lt;P&gt;1. What version of SAS Viya are you using?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Please review the documentation for &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_046/casref/p0p9kn6ouww8xfn1c402guo4uxmh.htm" target="_self"&gt;PROC CASUTIL:&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;The &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_046/casref/p14yxz0iv60plxn11hq20kp4hms6.htm" target="_self"&gt;ALTERTABLE&lt;/A&gt; statement modifies an existing CAS table; it does not unload a table. To unload a CAS table from memory, use the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_046/casref/p14fpceaxx8pz9n1id0wrgj92mrt.htm" target="_self"&gt;DROPTABLE&lt;/A&gt; statement.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;To load a dataset from an existing SAS library to CAS, your &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_046/casref/n03spmi9ixzq5pn11lneipfwyu8b.htm" target="_self"&gt;LOAD&lt;/A&gt; statement should use &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_046/casref/n03spmi9ixzq5pn11lneipfwyu8b.htm#p1fxz8l9vb2cy7n1dlbxc2b8y5pn" target="_self"&gt;Form 2&lt;/A&gt; (LOAD DATA= )&lt;BR /&gt;Note that this will perform a client-side load of the data, and may take a long time if the data is large.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;3. Please share&amp;nbsp; your complete code, including:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_046/casref/n0z3r80fjqpobvn1lvegno9gefni.htm" target="_self"&gt;CAS&lt;/A&gt; statement (which initiated the CAS session)&lt;/LI&gt;
&lt;LI&gt;the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_046/casref/n0kizq68ojk7vzn1fh3c9eg3jl33.htm" target="_self"&gt;CASLIB&lt;/A&gt; statement (which established the caslib&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;test123&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 13:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Load-and-Unload-datatable-in-sas-viya-caslib/m-p/909470#M358716</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-22T13:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load and Unload datatable in sas viya caslib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Load-and-Unload-datatable-in-sas-viya-caslib/m-p/909553#M358740</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13728"&gt;@SASJedi&lt;/a&gt;&amp;nbsp;Thanks for reply... I followed steps mentioned by you.&lt;/P&gt;&lt;P&gt;I am using SAS VIYA&amp;nbsp;&lt;SPAN&gt;V.03.05.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below code able to establish the cas session and load and unload the table from caslib created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;LIBNAME test123 ODBC&amp;nbsp; NOPROMPT="dsn=XXXXXXXXX;Trusted_Connection=yes"&amp;nbsp; SCHEMA=DBO ;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;cas casauto sessopts=(caslib="test123");&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;/*To Unload the Data*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;PROC CASUTIL;&lt;/DIV&gt;&lt;DIV&gt;droptable CASDATA="Class_test"&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;INCASLIB="test123";&lt;/DIV&gt;&lt;DIV&gt;QUIT;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*To load the Data*/&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;proc casutil;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt; load data=test123.Class_test promote;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* 2 */&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;contents casdata="Class_test";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 23 Dec 2023 07:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Load-and-Unload-datatable-in-sas-viya-caslib/m-p/909553#M358740</guid>
      <dc:creator>SatishR</dc:creator>
      <dc:date>2023-12-23T07:06:36Z</dc:date>
    </item>
  </channel>
</rss>

