<?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 Problems with Where Predicate in AS400 ODBC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Where-Predicate-in-AS400-ODBC/m-p/241375#M91800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am working about an incremental load, the first test works fine when i use:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SQL SELECT * FROM TableName where timestamp(H2DBT3) &amp;gt;= '2011-03-07 13:28:41.76';&lt;/P&gt;&lt;P&gt;But i need include this predicate in a variable like:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LET INCREMENTAL_EXP = 'WHERE timestamp(H2DBT3) &amp;gt;=' &amp;amp; fieldValue('maxdate', 1);&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL SELECT * FROM TableName $(&lt;/B&gt;&lt;B&gt;INCREMENTAL_EXP&lt;/B&gt;&lt;B&gt;);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Don't work, ODBC ERROR&lt;/P&gt;&lt;P&gt;Then i test this:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LET INCREMENTAL_EXP = " WHERE timestamp(H2DBT3) &amp;gt;= '2011-03-07 13:28:41.76'";&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL SELECT * FROM TableName $(&lt;/B&gt;&lt;B&gt;INCREMENTAL_EXP&lt;/B&gt;&lt;B&gt;);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Don't Work, i have not errors but load all the rows, 'where' is ignored...&lt;/P&gt;&lt;P&gt;I use QV SR5 64Bit and HIT ODBC Server 400 64 Bit.&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;JA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 23:48:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-07T23:48:08Z</dc:date>
    <item>
      <title>Problems with Where Predicate in AS400 ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Where-Predicate-in-AS400-ODBC/m-p/241375#M91800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am working about an incremental load, the first test works fine when i use:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SQL SELECT * FROM TableName where timestamp(H2DBT3) &amp;gt;= '2011-03-07 13:28:41.76';&lt;/P&gt;&lt;P&gt;But i need include this predicate in a variable like:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LET INCREMENTAL_EXP = 'WHERE timestamp(H2DBT3) &amp;gt;=' &amp;amp; fieldValue('maxdate', 1);&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL SELECT * FROM TableName $(&lt;/B&gt;&lt;B&gt;INCREMENTAL_EXP&lt;/B&gt;&lt;B&gt;);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Don't work, ODBC ERROR&lt;/P&gt;&lt;P&gt;Then i test this:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LET INCREMENTAL_EXP = " WHERE timestamp(H2DBT3) &amp;gt;= '2011-03-07 13:28:41.76'";&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL SELECT * FROM TableName $(&lt;/B&gt;&lt;B&gt;INCREMENTAL_EXP&lt;/B&gt;&lt;B&gt;);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Don't Work, i have not errors but load all the rows, 'where' is ignored...&lt;/P&gt;&lt;P&gt;I use QV SR5 64Bit and HIT ODBC Server 400 64 Bit.&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;JA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 23:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Where-Predicate-in-AS400-ODBC/m-p/241375#M91800</guid>
      <dc:creator />
      <dc:date>2011-03-07T23:48:08Z</dc:date>
    </item>
    <item>
      <title>Problems with Where Predicate in AS400 ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Where-Predicate-in-AS400-ODBC/m-p/241376#M91801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to quote the value, code the LET like this:&lt;/P&gt;&lt;P&gt;LET INCREMENTAL_EXP = 'WHERE timestamp(H2DBT3) &amp;gt;= ' &amp;amp; chr(39) &amp;amp; fieldvalue('maxdate', 1) &amp;amp; chr(39);&lt;/P&gt;&lt;P&gt;Look at the document log file to confirm what is being passed in the SQL statement is what you expect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 07:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Where-Predicate-in-AS400-ODBC/m-p/241376#M91801</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-03-08T07:46:31Z</dc:date>
    </item>
    <item>
      <title>Problems with Where Predicate in AS400 ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Where-Predicate-in-AS400-ODBC/m-p/241377#M91802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect and Fast Solution; Rob,&lt;/P&gt;&lt;P&gt;Thank you very much for your help and congratulations for http://qlikviewnotes.blogspot.com&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;JA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 15:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Where-Predicate-in-AS400-ODBC/m-p/241377#M91802</guid>
      <dc:creator />
      <dc:date>2011-03-08T15:11:04Z</dc:date>
    </item>
  </channel>
</rss>

