<?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: I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20395#M18561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would force the issue by using &lt;STRONG&gt;to_date&lt;/STRONG&gt;.&amp;nbsp; That way you won't have to rely on knowing what the default date mask is in a database.&amp;nbsp; I don't have Informix handy so can't test this, but it's from the internet, so it must be true &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" src="https://community.jmp.com/7.0.4.3b79b96/images/emoticons/wink.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;to_date&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'12/12/2013'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;"%d/%m/%Y"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 14:27:58 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2016-09-13T14:27:58Z</dc:date>
    <item>
      <title>I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached.</title>
      <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20391#M18557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any advice is appreciated.&amp;nbsp; thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 18:39:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20391#M18557</guid>
      <dc:creator>ronaldochoa</dc:creator>
      <dc:date>2016-09-12T18:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached.</title>
      <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20392#M18558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, ronaldochoa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you dismiss the error message and then select the SQL tab in the bottom middle section of Query Builder and attach a screenshot of that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an SQL standard for how date-time values are represented as literals in SQL statements, but many database vendors deviate from that standard.&amp;nbsp; Query Builder's SQL code generation is aware of many of those deviations, but not all, so I suspect Query Builder is not formatting the date-time literal in a way that Informix can interpret for your filter on row_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 12:05:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20392#M18558</guid>
      <dc:creator>Eric_Hill</dc:creator>
      <dc:date>2016-09-13T12:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached.</title>
      <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20393#M18559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks Eric. See screenshot of the SQL created.&amp;nbsp; I tried to use date time functions like MDY() or CAST but the Query Builder rejects them and removes the filter altogether, and the tool won't let me edit the SQL manually either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12720_InformixDateError2.JPG" style="width: 794px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/3691i25C18C996CFAEBD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12720_InformixDateError2.JPG" alt="12720_InformixDateError2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 04:01:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20393#M18559</guid>
      <dc:creator>ronaldochoa</dc:creator>
      <dc:date>2016-10-19T04:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached.</title>
      <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20394#M18560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, in researching this, it seems that the date literal format that Informix recognizes is affected by Informix options like DBDATE.&amp;nbsp; See &lt;A href="http://www.ibm.com/support/knowledgecenter/SSGU8G_11.50.0/com.ibm.sqlr.doc/ids_sqr_212.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;this page&lt;/A&gt; for example. That article suggests that DBDATE can be set on the client side, perhaps in the ODBC driver setup.&amp;nbsp; However, it looks like all of the formats Informix likes have separators between the date parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I would suggest as a workaround:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set up your filter the way you did originally:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12725_custfilter1.png" style="width: 480px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/3692i9CF557FDA5AA4E42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12725_custfilter1.png" alt="12725_custfilter1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, use the red triangle menu in the filter to change the filter type to "Custom Expression":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12726_custfilter2.png" style="width: 663px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/3693i4977D25533CA0D50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12726_custfilter2.png" alt="12726_custfilter2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That will change the filter to just be an entry field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12728_custfilter3.png" style="width: 462px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/3694i1D2449D83ABFB316/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12728_custfilter3.png" alt="12728_custfilter3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, try changing '20130216' (or whatever your date is) to '2013-02-16', and then click outside of the Custom Expression box to let it process.&amp;nbsp; See if you still get the error.&amp;nbsp; If so, try '2013/02/16'.&amp;nbsp; Failing that, you may need to ask the adminitrators of your Informix database how your installation of Informix is expecting date literals to be formatted (a.k.a., what value does DBDATE have).&amp;nbsp; Also, I don't have the Informix ODBC driver installed at the moment, but you could look there and see if there is a way to configure DBDATE in the driver such that the default date format that Query Builder is using would work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 04:01:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20394#M18560</guid>
      <dc:creator>Eric_Hill</dc:creator>
      <dc:date>2016-10-19T04:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached.</title>
      <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20395#M18561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would force the issue by using &lt;STRONG&gt;to_date&lt;/STRONG&gt;.&amp;nbsp; That way you won't have to rely on knowing what the default date mask is in a database.&amp;nbsp; I don't have Informix handy so can't test this, but it's from the internet, so it must be true &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" src="https://community.jmp.com/7.0.4.3b79b96/images/emoticons/wink.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;to_date&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'12/12/2013'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;"%d/%m/%Y"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 14:27:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20395#M18561</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2016-09-13T14:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached.</title>
      <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20396#M18562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked Eric, thanks!&amp;nbsp; The mm/dd/YYYY format worked.&amp;nbsp; The solution of PMroz also worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 15:03:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20396#M18562</guid>
      <dc:creator>ronaldochoa</dc:creator>
      <dc:date>2016-09-13T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached.</title>
      <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20397#M18563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked!&amp;nbsp; Thanks PMroz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 15:05:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20397#M18563</guid>
      <dc:creator>ronaldochoa</dc:creator>
      <dc:date>2016-09-13T15:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: I'm extracting data from an Informix DB using an ODBC driver but the date filter (JMP query builder) throws an error.  see screenshot attached.</title>
      <link>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20398#M18564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&amp;nbsp; That Informix page did say that the default value of DBDATE is 'MDY4/', so if 'mm/dd/YYYY' format worked, your Informix installation is apparently using the default value of DBDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 15:23:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-m-extracting-data-from-an-Informix-DB-using-an-ODBC-driver-but/m-p/20398#M18564</guid>
      <dc:creator>Eric_Hill</dc:creator>
      <dc:date>2016-09-13T15:23:30Z</dc:date>
    </item>
  </channel>
</rss>

