<?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: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306536#M270564</link>
    <description>Your SQL generates a full table scan, so pushing the case to Oracle should not gain much performance.</description>
    <pubDate>Sat, 22 Oct 2016 08:44:18 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-10-22T08:44:18Z</dc:date>
    <item>
      <title>SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306475#M270560</link>
      <description>&lt;P&gt;I am writing a proc sql using SAS/ACCESS for Oracle.&lt;/P&gt;&lt;P&gt;This is my library statement:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; oradb &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;oracle&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;user&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;sysuserid.&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;password&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'{SAS002}XXXX'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;path&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=db_path &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;schema&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=db_schema &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sql_functions&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=all;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used sastrace to check the generated sql and execution location of this sql:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sastrace=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;',,,d'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sastraceloc=saslog nostsuffix;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usually generated sql is executing in Oracle environment.&lt;/P&gt;&lt;P&gt;But when I use &lt;EM&gt;&lt;STRONG&gt;PUT()&lt;/STRONG&gt;&lt;/EM&gt; to change forrmat then sql is executing in SAS environment and its impacting performance:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ACCESS ENGINE: SQL statement was not passed to the DBMS, SAS will do the processing.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement to change the datetime and number to character format before using it in case when statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp; case&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; when&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; a.id &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;is&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;not&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; null &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; put(a.age,&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; when&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; a.id &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;is&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; null &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'N/A'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; age&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; oradb.table_nm &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; a;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Is there other way to change datetime or Number to Char so that SQL can process in DBMS environment?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Any help or suggestion wil be much appreciate. Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 22:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306475#M270560</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2016-10-21T22:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306477#M270561</link>
      <description>&lt;P&gt;Using SQL passthru will give you more flexibility (untested):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle (user=&amp;amp;sysuserid. password='{SAS002}XXXX' path=db_path schema=db_schema);
 select
  case
    when missing(id) then 'N/A'
    else put(age, 8.)
  end 
  as age2
  from connection to oracle
(select id,
age
from table_nm )
;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Oct 2016 23:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306477#M270561</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-10-21T23:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306478#M270562</link>
      <description>&lt;P&gt;PUT isn't a valid SQL function. Use a SQL function, it sounds like ORACLE&amp;nbsp;so&amp;nbsp;googling Oracle convert number to character, then you can use TO_CHAR&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;TO_CHAR(age)&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;This is assuming you're using direct SQL pass through and not implicit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The list of functions that can be passed directly to the server is here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69039/HTML/default/viewer.htm#p0f64yzzxbsg8un1uwgstc6fivjd.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69039/HTML/default/viewer.htm#p0f64yzzxbsg8un1uwgstc6fivjd.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You haven't really explained this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;I have a requirement to change the datetime and number to character format before using it in case when statement&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Depending on exactly what you're trying to do there may be other ways to accomplish your end goal.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 00:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306478#M270562</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-22T00:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306528#M270563</link>
      <description>&lt;P&gt;I would actually have expected that for the code you've posted the Access engine would send the following for execution to the database: &amp;nbsp;select id from &amp;lt;oracle schema&amp;gt;.table_nm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then only on the SAS side the case statement would get executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi﻿&lt;/a&gt;&amp;nbsp;proposes is the way I would do it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also try to re-formulate your query as follows. May be this way the Access engine gets it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
 select
  case
    when a.id is not null then put(a.age,8.)
    when a.id is null then 'N/A'
    as age
 from 
  (
    select id from oradb.table_nm
  )
 ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's another case if you want to apply SAS functions which can't get pushed to the data base in logical expressions as there the data would get transferred to SAS before reducing the volume. In such a case you want to write the code in native Oracle SQL as pass-through SQL.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 05:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306528#M270563</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-22T05:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306536#M270564</link>
      <description>Your SQL generates a full table scan, so pushing the case to Oracle should not gain much performance.</description>
      <pubDate>Sat, 22 Oct 2016 08:44:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306536#M270564</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-22T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306881#M270565</link>
      <description>&lt;P&gt;Thanks everyone for suggestions.&lt;/P&gt;&lt;P&gt;Here I can't use explicit passthrough because:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Since I dont have write access to Oracle server, I have created some views in SAS library pointing to Oracle schema.&lt;/LI&gt;&lt;LI&gt;I am using these libraries in my SQLs.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SAS/Access for Oracle takes care of generating DBMS specific SQL and passing it to Oracle server for processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only time it fails when I use PUT() function.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 16:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306881#M270565</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2016-10-24T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306884#M270566</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi﻿&lt;/a&gt;&amp;nbsp;for suggestion.&lt;/P&gt;&lt;P&gt;But here I can't use explicit passthrough because:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Since I dont have write access to Oracle server, I have created some views in SAS library pointing to Oracle schema.&lt;/LI&gt;&lt;LI&gt;I am using these libraries in my SQLs.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SAS/Access for Oracle takes care of generating DBMS specific SQL and passing it to Oracle server for processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only time it fails when I use PUT() function.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 16:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/306884#M270566</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2016-10-24T16:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/307043#M270567</link>
      <description>&lt;P&gt;You don't need write access to Oracle to run a passthru query that is only reading from an Oracle table. The advantage of passthru is that you can use your PUT function in the SAS side of the query.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 06:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/307043#M270567</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-10-25T06:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/742067#M270568</link>
      <description>&lt;P&gt;Errors:&lt;/P&gt;&lt;P&gt;SAS_SQL: Failed to get a DBMS-specific datetime value. 163681 1621320885 no_name 0 SQL (469&lt;BR /&gt;SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error. 163682&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Timestamp 18.05.2021 09:54:45&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 136&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 1&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;/P&gt;&lt;P&gt;MLOGIC(MEQUIBEHSCOREUPRE): %PUT mvNow= &amp;amp;mvNow&lt;BR /&gt;SYMBOLGEN: Macro variable MVNOW resolves to 1936950885.51&lt;BR /&gt;mvNow= 1936950885.51&lt;BR /&gt;MPRINT(MEQUIBEHSCOREUPRE): proc sql;&lt;BR /&gt;SYMBOLGEN: Macro variable T_CLIENT_ID resolves to 00000031-B081-4E97-9437-F20CF874F857&lt;BR /&gt;SYMBOLGEN: Macro variable MVNOW resolves to 1936950885.51&lt;BR /&gt;MPRINT(MEQUIBEHSCOREUPRE): select COALESCE(sum(abc.step_sum),0) into :SumLoans_12m from RTDM_ABT.ABT_CONTRACT abc where abc.CLIENT_ID = "00000031-B081-4E97-9437-F20CF874F857" and 1936950885.51&lt;BR /&gt;- abc.CONTRACT_BEGINDATE &amp;lt;= (365*24*60*60) and abc.DML_FLAG NE 1 group by abc.CLIENT_ID;&lt;BR /&gt;163677 1621320885 no_name 0 SQL (469&lt;BR /&gt;SQLSRV_37146: Prepared: on connection 0 163678 1621320885 no_name 0 SQL (469&lt;BR /&gt;SELECT * FROM rtdm_abt . ABT_CONTRACT 163679 1621320885 no_name 0 SQL (469&lt;BR /&gt;163680 1621320885 no_name 0 SQL (469&lt;BR /&gt;SAS_SQL: Failed to get a DBMS-specific datetime value. 163681 1621320885 no_name 0 SQL (469&lt;BR /&gt;SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error. 163682 1621320885 no_name 0 SQL (469&lt;BR /&gt;ACCESS ENGINE: SQL statement was not passed to the DBMS, SAS will do the processing. 163683 1621320885 no_name 0 SQL (469&lt;BR /&gt;163684 1621320885 no_name 0 SQL (469&lt;BR /&gt;SQLSRV_37147: Prepared: on connection 0 163685 1621320885 no_name 0 SQL (469&lt;BR /&gt;SELECT STEP_SUM , CLIENT_ID , CONTRACT_BEGINDATE , DML_FLAG FROM rtdm_abt . ABT_CONTRACT WHERE ( ( CLIENT_ID = '00000031-B081-4E97-9437-F20CF874F857' ) AND ( DML_FLAG &amp;lt;&amp;gt; 1 ) )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 07:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SQL-Unable-to-convert-the-query-to-a-DBMS-specific-SQL/m-p/742067#M270568</guid>
      <dc:creator>DimaSup</dc:creator>
      <dc:date>2021-05-18T07:15:02Z</dc:date>
    </item>
  </channel>
</rss>

