<?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: Handling NULL values in flat file data source in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687370#M1064377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all your answers &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 14:43:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-12T14:43:13Z</dc:date>
    <item>
      <title>Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687363#M1064370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new in QlikView and I visit frequently the Qlik Community to look for help.&lt;/P&gt;&lt;P&gt;This time I didn't find a similar problem to mine, so I will expose it here hope I will find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text file containing Null values. When opened with Notepad++, I can see the NULL mark.&lt;/P&gt;&lt;P&gt;The texte file is qualified by Field length which causes me a problem because I can't see the NULL marks when opening the file in QlikView.&lt;/P&gt;&lt;P&gt;The attached print screen shows the problem details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I well explain my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687363#M1064370</guid>
      <dc:creator />
      <dc:date>2014-09-12T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687364#M1064371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please load a sample file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687364#M1064371</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-12T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687365#M1064372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish Kachhia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the sample text file in attachment of my first message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687365#M1064372</guid>
      <dc:creator />
      <dc:date>2014-09-12T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687366#M1064373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a single field? if not, what is the delimiter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687366#M1064373</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-12T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687367#M1064374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must split the file this way : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="400"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;Field 1&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Field 2&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Field 3&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Field 4&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Field 5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Azerty&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;XYZ&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1111&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Test001&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 1 : 4 charcaters,&lt;/P&gt;&lt;P&gt;Field 2 : 7 characters,&lt;/P&gt;&lt;P&gt;Field 3 : 2 characters,&lt;/P&gt;&lt;P&gt;Field 4 : 3 characters,&lt;/P&gt;&lt;P&gt;Field 5 : 3 characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687367#M1064374</guid>
      <dc:creator />
      <dc:date>2014-09-12T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687368#M1064375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i don't think Qlik can find/replace these NULLs in the script.&amp;nbsp; I tried loading the file through an ODBC text driver, but it reacts in the same way and i haven't found SQL that can pick up NULL values within a field,&amp;nbsp; but you can use the coalesce() function to replace a field whose entire value is NULL with something else. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So backing up a bit... what exactly do you need to read these NULLS for&amp;nbsp; ?&amp;nbsp; does each NULL represent an empty value for field ?&amp;nbsp; In this case as Manish asked above, i would suggest creating a delimiter in the source file ... could be any character .&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687368#M1064375</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-12T13:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687369#M1064376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can create the fields you describe using left, Mid and Right function only if the Null Values are either from Starting but any Null between other character can't be identified...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687369#M1064376</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-12T13:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687370#M1064377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all your answers &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687370#M1064377</guid>
      <dc:creator />
      <dc:date>2014-09-12T14:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL values in flat file data source</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687371#M1064378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could use a batch-execution before you loaded the file with read + replace + store. Here an example with the first two steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ReplaceNull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;set sourcefile = fso.OpenTextFile("C:\Users\Marcus Sommer\Desktop\TestNull.txt", 1, true)&lt;/P&gt;&lt;P&gt;strSource = sourcefile.readall&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox "##" &amp;amp; strSource &amp;amp; "##"&lt;/P&gt;&lt;P&gt;msgbox "##" &amp;amp; replace(strSource, chr(0), "&amp;gt;&amp;gt;&amp;gt;") &amp;amp; "##"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-values-in-flat-file-data-source/m-p/687371#M1064378</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-12T14:47:40Z</dc:date>
    </item>
  </channel>
</rss>

