<?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>Question Re: IQ null values management in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330736#M4199996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Behavior you are seeing for load for Zero length strings into a Null char column in expected.&lt;/P&gt;&lt;P&gt;To achieve the behavior you want , you will need to do following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Set option public.Load_ZEROLENGTH_ASNULL=on&lt;/P&gt;&lt;P&gt;2. Modify the load statement to direct IQ&amp;nbsp; load NULL when there is a blank data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, col3 NULL(BLANKS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both conditions are essential for the desired effect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 14:09:56 GMT</pubDate>
    <dc:creator>saroj_bagai</dc:creator>
    <dc:date>2015-09-29T14:09:56Z</dc:date>
    <item>
      <title>IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaq-p/11330731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing an issue with SAP Data Services &amp;amp; IQ with null values management.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a column containing nulls.&lt;/P&gt;&lt;P&gt;If i try to use a select * from table where column is null, i have a correct output with DBISQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use SAP Data Services with function like NVL() or restrictions like COLUMN IS NULL, i have no correct output.&lt;/P&gt;&lt;P&gt;It seems like DS can't identify null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any configuration to be done in SAP IQ platform to correct this behavior ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 12:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaq-p/11330731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-29T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330732#M4199992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guilaume,&lt;/P&gt;&lt;P&gt;I suggest look in sql traces in IQ server and check the options and exact statement sent by SAP DS to IQ. If tracing is not enabled, you can enable it like this :&lt;/P&gt;&lt;P&gt;- Connect with dbisql&lt;/P&gt;&lt;P&gt;CALL sa_server_option( 'RequestLogFile', 'trace_file_name.out'); &lt;BR /&gt;CALL sa_server_option( 'RequestLogging', 'ALL' ); &lt;BR /&gt; -Test the query from Data services &lt;BR /&gt; -Disable tracing : &lt;BR /&gt; CALL sa_server_option( 'RequestLogging', ‘NONE' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330732#M4199992</guid>
      <dc:creator>tayeb_hadjou</dc:creator>
      <dc:date>2015-09-29T13:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330733#M4199993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would not recommend using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sa_server_option ('RequestLogFile', 'trace_file_name.out')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it&amp;nbsp; is better to log in the .srvlog, so that&amp;nbsp; you can get timestamps as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330733#M4199993</guid>
      <dc:creator>saroj_bagai</dc:creator>
      <dc:date>2015-09-29T13:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330734#M4199994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tayed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, i investigated this issue and found that the value is EMPTY and not null.&lt;/P&gt;&lt;P&gt;If i check the data in SAP IQ, it's not null, the length is 0.&lt;/P&gt;&lt;P&gt;The value is BLANK..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data comes from a CSV file loaded through SAP Data Services.&lt;/P&gt;&lt;P&gt;For INTEGER, NUMERIC or DATE fields there is no issue, a null value is inserted.&lt;/P&gt;&lt;P&gt;But when it comes to Varchar values, a blank is inserted instead of a null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints about that ? &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;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330734#M4199994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-29T13:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330735#M4199995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need adjust option LOAD_ZEROLENGTH_ASNULL (off by default) or NON_ANSI_NULL_VARCHAR&amp;nbsp; (off by default)&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc38151.1604/doc/html/san1278453569135.html"&gt;http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc38151.1604/doc/html/san1278453569135.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330735#M4199995</guid>
      <dc:creator>tayeb_hadjou</dc:creator>
      <dc:date>2015-09-29T14:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330736#M4199996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Behavior you are seeing for load for Zero length strings into a Null char column in expected.&lt;/P&gt;&lt;P&gt;To achieve the behavior you want , you will need to do following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Set option public.Load_ZEROLENGTH_ASNULL=on&lt;/P&gt;&lt;P&gt;2. Modify the load statement to direct IQ&amp;nbsp; load NULL when there is a blank data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, col3 NULL(BLANKS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both conditions are essential for the desired effect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330736#M4199996</guid>
      <dc:creator>saroj_bagai</dc:creator>
      <dc:date>2015-09-29T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330737#M4199997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you load character or binary based data, an empty string is considered data.&amp;nbsp; It is a string of zero length.&amp;nbsp; If it were null, usually the data contains some string of characters denoting that it is a NULL value (the keyword NULL, for instance).&amp;nbsp; If you want to treat all empty strings a NULL data, you simply need to set the options Load_ZeroLength_AsNULL to ON and NON_ANSI_NULL_VARCHAR to ON, then follow some basic configurations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;This option specifies &lt;SPAN style="font-family: Courier;"&gt;LOAD &lt;/SPAN&gt;statement behavior under these conditions:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt;"&gt;inserting a zero-length data value into a column of data type &lt;SPAN style="font-family: Courier;"&gt;CHAR&lt;/SPAN&gt;, &lt;SPAN style="font-family: Courier;"&gt;VARCHAR&lt;/SPAN&gt;, &lt;SPAN style="font-family: Courier;"&gt;LONG VARCHAR&lt;/SPAN&gt;, &lt;SPAN style="font-family: Courier;"&gt;BINARY&lt;/SPAN&gt;, &lt;SPAN style="font-family: Courier;"&gt;VARBINARY&lt;/SPAN&gt;, or &lt;SPAN style="font-family: Courier;"&gt;LONG BINARY&lt;/SPAN&gt;, and&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt;"&gt;a NULL column-spec; for example, NULL(ZEROS) or NULL(BLANKS) is also given for that same column.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 9px; font-family: Helvetica;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Helvetica;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set &lt;SPAN style="font-family: Courier;"&gt;LOAD_ZEROLENGTH_ASNULL &lt;/SPAN&gt;ON to load a zero-length value as NULL when the above conditions are met.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Helvetica;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Helvetica;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set &lt;SPAN style="font-family: Courier;"&gt;LOAD_ZEROLENGTH_ASNULL &lt;/SPAN&gt;OFF to load a zero-length value as zero-length, subject to the setting of option &lt;SPAN style="font-family: Courier;"&gt;NON_ANSI_NULL_VARCHAR&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Helvetica;"&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Helvetica;"&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Helvetica;"&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Helvetica;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330737#M4199997</guid>
      <dc:creator>markmumy</dc:creator>
      <dc:date>2015-09-29T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330738#M4199998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also confirm your setting of the option 'ansinull'.&amp;nbsp; Depending on how DS is connecting (ODBC or OpenClient), the option may be set wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ansinull = 'off' will interpret '&amp;lt;col&amp;gt; is null' the same as 'col = null' whereas ansinull = 'on' will give an indeterminate result for '=' and '!=' and comparisons should use 'is null' only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default is 'On' for ODBC and JDBC/ODBC bridge and off for OpenClient and jConnect JDBC connections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What connection type/driver are you using for DS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330738#M4199998</guid>
      <dc:creator>ChrisBaker</dc:creator>
      <dc:date>2015-09-29T15:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: IQ null values management</title>
      <link>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330739#M4199999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;STRONG style="font-size: 10.8px; color: #333333; background: #ffffff;"&gt; &lt;A __default_attr="685494" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Tayeb HADJOU" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/STRONG&gt; , &lt;A __default_attr="551437" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Saroj Bagai" href="https://community.sap.com/"&gt;&lt;/A&gt; &lt;A __default_attr="586981" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Mark Mumy" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This solved the issue and i can now properly insert null values.and use nvl, IS NULL, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="566204" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Chris Baker" href="https://community.sap.com/"&gt;&lt;/A&gt; We are using ODBC connection with SAP Data Services, for now it seems like it's working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your efforts ! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 14:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/iq-null-values-management/qaa-p/11330739#M4199999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-30T14:32:58Z</dc:date>
    </item>
  </channel>
</rss>

