<?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: FED SQL Sample Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875163#M345794</link>
    <description>&lt;P&gt;I think that you need to upload your stg_data table to CAS to make it available for your CAS session.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/ja/vdmmlcdc/8.1/pgmdiff/p04wmq9r1z55s3n1s08fs102nb43.htm" target="_blank"&gt;SAS Help Center: Load Data to a Caslib&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 09:25:17 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2023-05-11T09:25:17Z</dc:date>
    <item>
      <title>FED SQL Sample Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875155#M345790</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to FED SQL. I get the following error when I want to pull a table from SAS Base to CASLIB. What is the reason?&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname STG_DATA "/datastagingarea/STGLIB";
cas mySession sessopts=(caslib=analytic timeout=3600 locale="en_US" metrics=true);
proc fedsql sessref=mySession;
   create table analytic.FED_SQL2{options  replace=true replication=0} as
   select *
   from stg_data.POS_TEST as t1
;quit ;&lt;/PRE&gt;
&lt;P&gt;Error Message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1    %studio_hide_wrapper;
83   proc fedsql sessref=mySession;
84      create table analytic.FED_SQL2{options  replace=true replication=0} as
85      select *
86      from stg_data.POS_TEST as t1
87   ;
87 !  quit ;
NOTE: Executing action 'fedSql.execDirect'.
ERROR: The caslib STG_DATA does not exist or could not be accessed.
ERROR: Table "STG_DATA.POS_TEST" does not exist or cannot be accessed
ERROR: The action stopped due to errors.
NOTE: Action 'fedSql.execDirect' used (Total process time):
NOTE:       real time               0.043427 seconds
NOTE:       cpu time                0.056188 seconds (129.38%)
NOTE:       total nodes             5 (72 cores)
NOTE:       total memory            1.11T
NOTE:       memory                  5.86M (0.00%)
ERROR: The FedSQL action was not successful.
NOTE: PROC FEDSQL has set option NOEXEC and will continue to prepare statements.
NOTE: PROCEDURE FEDSQL used (Total process time):
      real time           0.12 seconds
      cpu time            0.01 seconds
      
88   
89   
90   %studio_hide_wrapper;
101  
102  &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Extra: Is there any way to save the table as sashdat to caslib with Fed SQL, what is the best-practice?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 08:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875155#M345790</guid>
      <dc:creator>C_Golen</dc:creator>
      <dc:date>2023-05-11T08:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: FED SQL Sample Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875163#M345794</link>
      <description>&lt;P&gt;I think that you need to upload your stg_data table to CAS to make it available for your CAS session.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/ja/vdmmlcdc/8.1/pgmdiff/p04wmq9r1z55s3n1s08fs102nb43.htm" target="_blank"&gt;SAS Help Center: Load Data to a Caslib&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 09:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875163#M345794</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-05-11T09:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: FED SQL Sample Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875402#M345879</link>
      <description>&lt;P&gt;Hi LinusH,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for answering. As far as I understand it is not possible to load a sas table to cas by using Fed SQL which is my main goal.&lt;/P&gt;
&lt;P&gt;Is it correct?&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875402#M345879</guid>
      <dc:creator>C_Golen</dc:creator>
      <dc:date>2023-05-12T06:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: FED SQL Sample Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875464#M345904</link>
      <description>&lt;P&gt;It seems so, I get an error as well, even if I don't state a CAS session in the proc.&lt;/P&gt;
&lt;P&gt;But proc sql works.&lt;/P&gt;
&lt;P&gt;Do you need it to be FedSQL specifically?&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:36:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FED-SQL-Sample-Error/m-p/875464#M345904</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-05-12T13:36:44Z</dc:date>
    </item>
  </channel>
</rss>

