<?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: proc fedsql error with path based caslib in Developers</title>
    <link>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/502694#M15</link>
    <description>&lt;P&gt;Hi, does anyone have the same error or does it happen only on my config?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 13:58:53 GMT</pubDate>
    <dc:creator>Edoedoedo</dc:creator>
    <dc:date>2018-10-09T13:58:53Z</dc:date>
    <item>
      <title>proc fedsql error with path based caslib</title>
      <link>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/493811#M14</link>
      <description>&lt;P&gt;Hi, we've just got Sas Viya 3.4 and I'm studying it to understand how can I improve my SAS 9.4 programs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem with proc sql, which as I saw exists only as proc fedsql. However, here's my caslib:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;caslib mycaslib path="/sas/staging/test" datasource=(srctype="path") libref=mycas;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inside that path there exists a table named test.sashdat. I load such a table in memory:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc casutil incaslib="mycaslib" outcaslib="mycaslib";
    load casdata="test.sashdat" casout="test" replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want, for instance,&amp;nbsp;to aggregate that table to count rows by FIELD1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fedsql;
    CREATE TABLE mycas.counts AS
    select FIELD, count(*) as N
    from mycas.test
    group by FIELD;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get this error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; ERROR: Table "MYCAS.TEST" does not exist or cannot be accessed
 ERROR: BASE driver, schema name MYCAS was not found for this connection&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What is wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 18:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/493811#M14</guid>
      <dc:creator>Edoedoedo</dc:creator>
      <dc:date>2018-09-08T18:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc fedsql error with path based caslib</title>
      <link>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/502694#M15</link>
      <description>&lt;P&gt;Hi, does anyone have the same error or does it happen only on my config?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 13:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/502694#M15</guid>
      <dc:creator>Edoedoedo</dc:creator>
      <dc:date>2018-10-09T13:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc fedsql error with path based caslib</title>
      <link>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/534779#M16</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are accessing CAS lib in fedsql but you dont have any session reference of CAS ?&amp;nbsp; It is not a config issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;cas mySession sessopts=(caslib=&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE class="  language-sas"&gt;mycas&amp;nbsp;&lt;/CODE&gt;&lt;CODE class="  language-sas"&gt;&lt;/CODE&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;timeout=3600 locale="en_US" metrics=true);&lt;BR /&gt;proc&lt;/SPAN&gt; fedsql sessref=mySession&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;/SPAN&gt; CREATE &lt;SPAN class="token statement"&gt;TABLE&lt;/SPAN&gt; mycas&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;counts AS &lt;BR /&gt;&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt; FIELD&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;count&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; as &lt;SPAN class="token function"&gt;N&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt; mycas&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;test &lt;BR /&gt;&lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; FIELD&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class="token procnames"&gt;quit&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this should fix your problem.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/534779#M16</guid>
      <dc:creator>Rahul_B</dc:creator>
      <dc:date>2019-02-12T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc fedsql error with path based caslib</title>
      <link>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/537325#M17</link>
      <description>Thanks a lot, the missing sessref was the problem!</description>
      <pubDate>Thu, 21 Feb 2019 06:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-fedsql-error-with-path-based-caslib/m-p/537325#M17</guid>
      <dc:creator>Edoedoedo</dc:creator>
      <dc:date>2019-02-21T06:55:23Z</dc:date>
    </item>
  </channel>
</rss>

