<?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 CAS Session, PUBLIC Schema is not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/794755#M254841</link>
    <description>&lt;P&gt;Hello guys.&lt;BR /&gt;I am running a DS2 procedure and reading an in-memory table. Code is similar to the structure below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;%LET&lt;/FONT&gt; SESSION=table2pro;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;%LET&lt;/FONT&gt; ACASLIB=PUBLIC ;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;cas&lt;/STRONG&gt; &lt;/FONT&gt;&amp;amp;SESSION &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;sessopts&lt;/STRONG&gt;&lt;/FONT&gt;=(&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;caslib&lt;/STRONG&gt;&lt;/FONT&gt;=&amp;amp;ACASLIB. &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;timeout&lt;/STRONG&gt;&lt;/FONT&gt;=1800 &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;locale&lt;/STRONG&gt;&lt;/FONT&gt;="en_US");&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;libname&lt;/FONT&gt; &lt;STRONG&gt;&amp;amp;ACASLIB.&lt;/STRONG&gt; &lt;FONT color="#3366FF"&gt;cas&lt;/FONT&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;caslib _ALL_ list&lt;/FONT&gt; ;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;caslib _ALL_ assign&lt;/FONT&gt; ;&lt;BR /&gt;&lt;BR /&gt;proc Ds2;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;DS2_OPTIONS&lt;/STRONG&gt; &lt;/FONT&gt;divbyzero=ignore;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;DS2_OPTIONS&lt;/STRONG&gt; &lt;/FONT&gt;TYPEWARN;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; &lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;&amp;amp;ACASLIB.&lt;/FONT&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;output_M1 / overwrite=yes;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#3366FF"&gt;method run&lt;/FONT&gt;();&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#3366FF"&gt;SET&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#3366FF"&gt;&amp;amp;ACASLIB.&lt;/FONT&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;input_M1;&lt;BR /&gt;/* OTHER STATEMENTS HERE*/&lt;/P&gt;&lt;P&gt;/* OTHER STATEMENTS HERE*/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get an error like:&lt;/P&gt;&lt;DIV class=""&gt;&lt;FONT color="#FF0000"&gt;ERROR: Compilation error.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#FF0000"&gt;ERROR: BASE driver, schema name PUBLIC was not found for this connection&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;I would appreciate any help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 07 Feb 2022 10:21:41 GMT</pubDate>
    <dc:creator>Dritan007</dc:creator>
    <dc:date>2022-02-07T10:21:41Z</dc:date>
    <item>
      <title>CAS Session, PUBLIC Schema is not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/794755#M254841</link>
      <description>&lt;P&gt;Hello guys.&lt;BR /&gt;I am running a DS2 procedure and reading an in-memory table. Code is similar to the structure below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;%LET&lt;/FONT&gt; SESSION=table2pro;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;%LET&lt;/FONT&gt; ACASLIB=PUBLIC ;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;cas&lt;/STRONG&gt; &lt;/FONT&gt;&amp;amp;SESSION &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;sessopts&lt;/STRONG&gt;&lt;/FONT&gt;=(&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;caslib&lt;/STRONG&gt;&lt;/FONT&gt;=&amp;amp;ACASLIB. &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;timeout&lt;/STRONG&gt;&lt;/FONT&gt;=1800 &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;locale&lt;/STRONG&gt;&lt;/FONT&gt;="en_US");&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;libname&lt;/FONT&gt; &lt;STRONG&gt;&amp;amp;ACASLIB.&lt;/STRONG&gt; &lt;FONT color="#3366FF"&gt;cas&lt;/FONT&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;caslib _ALL_ list&lt;/FONT&gt; ;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;caslib _ALL_ assign&lt;/FONT&gt; ;&lt;BR /&gt;&lt;BR /&gt;proc Ds2;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;DS2_OPTIONS&lt;/STRONG&gt; &lt;/FONT&gt;divbyzero=ignore;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;DS2_OPTIONS&lt;/STRONG&gt; &lt;/FONT&gt;TYPEWARN;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; &lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;&amp;amp;ACASLIB.&lt;/FONT&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;output_M1 / overwrite=yes;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#3366FF"&gt;method run&lt;/FONT&gt;();&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#3366FF"&gt;SET&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#3366FF"&gt;&amp;amp;ACASLIB.&lt;/FONT&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;input_M1;&lt;BR /&gt;/* OTHER STATEMENTS HERE*/&lt;/P&gt;&lt;P&gt;/* OTHER STATEMENTS HERE*/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get an error like:&lt;/P&gt;&lt;DIV class=""&gt;&lt;FONT color="#FF0000"&gt;ERROR: Compilation error.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#FF0000"&gt;ERROR: BASE driver, schema name PUBLIC was not found for this connection&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;I would appreciate any help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Feb 2022 10:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/794755#M254841</guid>
      <dc:creator>Dritan007</dc:creator>
      <dc:date>2022-02-07T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: CAS Session, PUBLIC Schema is not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/794789#M254861</link>
      <description>&lt;P&gt;DS2 either runs completely in CAS or completely on the Compute Server (Base SAS). It can only access CAS tables when running in CAS. To execute DS2 in CAS using PROC DS2, you must specify the name of the CAS session in which you want to execute as an option on the PROC DS2 statement. This should do it for you:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET SESSION=table2pro;
%LET ACASLIB=PUBLIC ;
cas &amp;amp;SESSION sessopts=(caslib=&amp;amp;ACASLIB. timeout=1800 locale="en_US");
/* other sas code as desired */
proc ds2 &lt;STRONG&gt;sessref=&amp;amp;SESSION&lt;/STRONG&gt;;
/* other DS2 code here*/
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Make sure your DS2 programs reference tables using&amp;nbsp;&lt;EM&gt;caslib.table&lt;/EM&gt; notation instead of&amp;nbsp;&lt;EM&gt;libref.dataset&lt;/EM&gt; notation. For example, in your code you assigned the libref &lt;STRONG&gt;ACASLIB&lt;/STRONG&gt; to the &lt;STRONG&gt;PUBLIC&lt;/STRONG&gt; caslib. In DATA step you reference &lt;STRONG&gt;acaslib.table&lt;/STRONG&gt;, but running ds2 in CAS you reference &lt;STRONG&gt;public.table&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/794789#M254861</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-02-07T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: CAS Session, PUBLIC Schema is not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/797169#M255881</link>
      <description>&lt;P&gt;Thank you very much. That resolved the issue.&lt;BR /&gt;The last part I didn't quite get it.&lt;BR /&gt;&lt;BR /&gt;Isn't it the same if I write &lt;STRONG&gt;&amp;amp;ACASLIB&lt;/STRONG&gt;&amp;nbsp;or &lt;STRONG&gt;PUBLIC&lt;/STRONG&gt;&amp;nbsp;inside DS2 code?&lt;BR /&gt;Considering &amp;amp;ACASLIB will resolve to PUBLIC.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 08:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/797169#M255881</guid>
      <dc:creator>Dritan007</dc:creator>
      <dc:date>2022-02-18T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: CAS Session, PUBLIC Schema is not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/797214#M255896</link>
      <description>&lt;P&gt;Yes, &amp;amp;ACASLIB will resolve to PUBLIC here. I don't know why, but I thought ACASLIB was a LIBREF for the PUBLIC caslib. That code would have looked like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname acaslib cas caslib=public;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Instead of what you ACTUALLY wrote&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;. So all I really needed to talk about was the SESSREF= option. Sorry for the confusion.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 12:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAS-Session-PUBLIC-Schema-is-not-found/m-p/797214#M255896</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-02-18T12:58:38Z</dc:date>
    </item>
  </channel>
</rss>

