<?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: error when running code in job enviroment in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/error-when-running-code-in-job-enviroment/m-p/899074#M27389</link>
    <description>&lt;P&gt;there are some other sql queries that work between libname statement and proc fedsql errors&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 09:15:36 GMT</pubDate>
    <dc:creator>umarigann</dc:creator>
    <dc:date>2023-10-18T09:15:36Z</dc:date>
    <item>
      <title>error when running code in job enviroment</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/error-when-running-code-in-job-enviroment/m-p/899066#M27387</link>
      <description>&lt;P&gt;I have a code where i do few data engineering and create new tables in public from some postgres databases.&lt;/P&gt;
&lt;P&gt;It runs fine when i run it on develop code platform however I am running into many errors when i schedule it on job.&lt;/P&gt;
&lt;P&gt;I believe that the main reason is following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;error: ERROR: CLI describe error: SSL SYSCALL error: Connection timed out&lt;/PRE&gt;
&lt;P&gt;Besides those errors I am getting errors such as&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;note: 
source: 268  proc fedsql sessref=casauto;
source: 269  drop table PUBLIC.TABLE;
normal: ERROR: CASDAL driver. DROP TABLE failed. Table TABLE_ could not be located in caslib Public.
normal: ERROR: The action stopped due to errors.
error: ERROR: The FedSQL action was not successful.
note: NOTE: PROC FEDSQL has set option NOEXEC and will continue to prepare statements.
source: 270  quit;
note: 
note: NOTE: PROCEDURE FEDSQL used (Total process time):
note:       real time           1.24 seconds
note:       cpu time            0.01 seconds
note:  &lt;/PRE&gt;
&lt;PRE&gt;source: 272  proc sql;
source: 273  create table public.table as 
source: 274  SELECT *
source: 275  FROM db.main_table;
error: ERROR: CLI prepare error: SQLPrepare unable due to the connection lost&lt;/PRE&gt;
&lt;PRE&gt;source: 278  data public.another_table;
source: 279     set public.another_table_;
note: NOTE: The table PUBLIC.another_table_ does not exist in Cloud Analytic Services.
error: ERROR: File PUBLIC.another_table_.DATA does not exist.&lt;/PRE&gt;
&lt;P&gt;There are many errors&amp;nbsp; like this, for&amp;nbsp;CLI describe error, the table creation just before this error, I changed all tables name to small letters and it worked as it does in develope code section but same code with capital letter&amp;nbsp; took 4 hours to run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also asked for postgres logs during that 4 hour working but we still couldn't figure out the reason.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 08:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/error-when-running-code-in-job-enviroment/m-p/899066#M27387</guid>
      <dc:creator>umarigann</dc:creator>
      <dc:date>2023-10-18T08:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: error when running code in job enviroment</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/error-when-running-code-in-job-enviroment/m-p/899072#M27388</link>
      <description>Could the time it takes between running the libname statement and running the proc fedsql in the job be an issue? &lt;BR /&gt;Have you used DEFER=YES in the libname statement? See: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p1aukl464makuln1mszw8l045xgy.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p1aukl464makuln1mszw8l045xgy.htm&lt;/A&gt;</description>
      <pubDate>Wed, 18 Oct 2023 09:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/error-when-running-code-in-job-enviroment/m-p/899072#M27388</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-10-18T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: error when running code in job enviroment</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/error-when-running-code-in-job-enviroment/m-p/899074#M27389</link>
      <description>&lt;P&gt;there are some other sql queries that work between libname statement and proc fedsql errors&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 09:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/error-when-running-code-in-job-enviroment/m-p/899074#M27389</guid>
      <dc:creator>umarigann</dc:creator>
      <dc:date>2023-10-18T09:15:36Z</dc:date>
    </item>
  </channel>
</rss>

