<?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: Strange SAS-&amp;gt;ODBC database note in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Strange-SAS-gt-ODBC-database-note/m-p/744859#M233413</link>
    <description>&lt;P&gt;Show the statement (and the full log for that statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely you are trying to use an IMPLICIT passthrough to do the INSERT and SAS is saying it cannot execute the full statement in the remote database.&amp;nbsp; So something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;insert into mylib.mytable 
  select ....
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you think it should be able to do it completely in the remote database then use an EXPLICIT passthrough (just like you did to make the table).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;execute by mylib
( inset into myschema.mytable 
  select ...
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Jun 2021 03:51:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-06-01T03:51:15Z</dc:date>
    <item>
      <title>Strange SAS-&gt;ODBC database note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-SAS-gt-ODBC-database-note/m-p/744854#M233412</link>
      <description>&lt;P&gt;I've been trying to get around an issue when I upload data through SAS to an ODBC-connected DBMS. I've tried all sorts of variations, but the issue won't go away. Well, I say issue, but I don't know what the issue is!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm creating a table via an SQL &lt;EM&gt;execute&lt;/EM&gt; statement, then using a SAS-initiated&amp;nbsp;&lt;EM&gt;insert&lt;/EM&gt; statement to load into it. The message is:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;NOTE: The SQL statement cannot be executed directly against the database because it involves heterogeneous data sources.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Despite this, the dataset it replicated on the other end apparently perfectly without loss at the observation or variable level. sqlxrc is 0; sqlxmsg is null; sqlobs shows the correct number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm mostly convinced that it is something to do with numeric, non-datetime variables, perhaps related to where those variables contain null values. But I can't pin it down to just one variable on one row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen references to this note a couple of times elsewhere, but the explanations for it don't appear to be relevant to what I'm doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 03:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-SAS-gt-ODBC-database-note/m-p/744854#M233412</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2021-06-01T03:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Strange SAS-&gt;ODBC database note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-SAS-gt-ODBC-database-note/m-p/744859#M233413</link>
      <description>&lt;P&gt;Show the statement (and the full log for that statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely you are trying to use an IMPLICIT passthrough to do the INSERT and SAS is saying it cannot execute the full statement in the remote database.&amp;nbsp; So something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;insert into mylib.mytable 
  select ....
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you think it should be able to do it completely in the remote database then use an EXPLICIT passthrough (just like you did to make the table).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;execute by mylib
( inset into myschema.mytable 
  select ...
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Jun 2021 03:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-SAS-gt-ODBC-database-note/m-p/744859#M233413</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-01T03:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Strange SAS-&gt;ODBC database note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-SAS-gt-ODBC-database-note/m-p/744880#M233419</link>
      <description>&lt;P&gt;Whenever when you encounter issues with implicit pass through, set these options:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sastrace=',,,d' sastraceloc=saslog nostsuffix msglevel=i;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It might give you extra hints.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 07:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-SAS-gt-ODBC-database-note/m-p/744880#M233419</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-06-01T07:25:40Z</dc:date>
    </item>
  </channel>
</rss>

