<?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: Why don't SUBSTRING work in the LOAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910052#M652777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, in that case, how about SQL PATINDEX is it ant different syntax in qlikview ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 11:51:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-22T11:51:49Z</dc:date>
    <item>
      <title>Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910050#M652775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was under the assumption that regular SQL scripts could be used in the load scripts, but I'm struggling with getting this LOAD script to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like when I add a SUBSTRING to the script e.g.&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT substring(Name,2,4)&lt;/P&gt;&lt;P&gt;from database ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do I get an error saying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB read failed&lt;/P&gt;&lt;P&gt;SQL SELECT substring(Name,2,4)&lt;/P&gt;&lt;P&gt;from database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910050#M652775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-22T11:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910051#M652776</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;it does work - only QlikView syntax is slightly different. It's SUBFIELD().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910051#M652776</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-22T11:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910052#M652777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, in that case, how about SQL PATINDEX is it ant different syntax in qlikview ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910052#M652777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-22T11:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910053#M652778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know that one.&lt;/P&gt;&lt;P&gt;What does it do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910053#M652778</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-22T11:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910054#M652779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seaching for a pattern in a field e.g. &lt;/P&gt;&lt;P&gt;PATINDEX('(%',Name)) &lt;/P&gt;&lt;P&gt;is searching for % in Name and returning the position&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910054#M652779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-22T11:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910055#M652780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;mid(Name,2,4) as New_Name&lt;SPAN style="line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from database ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910055#M652780</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-22T11:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910056#M652781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's index() function in QlikView&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910056#M652781</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-22T11:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910057#M652782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the INDEX function would do that. I guess there are similar functions, too.&lt;/P&gt;&lt;P&gt;Just browse them in the help_file - all the STRING_functions are on one page which is quite annoying whenever you look for a specific one, only for learning about all the possibilities and the syntax it's practical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910057#M652782</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-22T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910058#M652783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably a wildmatch which can be used to search for patterns in the field values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910058#M652783</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-22T11:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910059#M652784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better load normally do modification for particular field in precceding load or resident load than drop the previous table &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910059#M652784</guid>
      <dc:creator />
      <dc:date>2015-07-22T11:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910060#M652786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Index function returns the position of a substring&amp;nbsp; in the string and it has to have an exact match&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 12:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910060#M652786</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-22T12:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910061#M652788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left() or Right() functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1290"&gt;&lt;/A&gt;&lt;A name="left"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;left( &lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;s , n&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Substring of the string &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt;. The result is a string consisting of the first &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; characters of &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt;. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;left('abcdef',3)&lt;/SPAN&gt; returns &lt;SPAN class="Italic"&gt;'abc'&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;left(Date, 4)&lt;/SPAN&gt; where &lt;SPAN class="Italic"&gt;Date&lt;/SPAN&gt; = 1997-07-14 returns &lt;SPAN class="Italic"&gt;1997&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;For a more complicated example, see the &lt;SPAN class="Bold"&gt;index&lt;/SPAN&gt; function below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1291"&gt;&lt;/A&gt;&lt;A name="right"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;right( &lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;s , n&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Substring of the string &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt;. The result is a string consisting of the last &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; characters of &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt;. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;right('abcdef',3 )&lt;/SPAN&gt; returns &lt;SPAN class="Italic"&gt;'def'&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;right( Date,2 )&lt;/SPAN&gt; where &lt;SPAN class="Italic"&gt;Date&lt;/SPAN&gt; = 1997-07-14 returns &lt;SPAN class="Italic"&gt;14&lt;/SPAN&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 12:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910061#M652788</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-07-22T12:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910062#M652790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview functions do not work within a SQL Select statement, these can be used in a preceding load and/or resident load. For the sql I think it's giving an error because you have not defined a fieldname e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT LastName, SUBSTRING(FirstName, 1, 1) AS Initial&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 12:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910062#M652790</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-07-22T12:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910063#M652791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I'm almost there I think, but can't I write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT Name ,mid(Name, index(Name,'('),4)&lt;/P&gt;&lt;P&gt;from database;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get a read from Name starting where there is a '(' and 4 positions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 12:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910063#M652791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-22T12:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't SUBSTRING work in the LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910064#M652793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;P&gt;=mid(Name,Index(Name,'(',1)+1, Index(Name,'(',1)-Index(Name,'(',1)+4) as name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include this condition in LOAD statement instead SQL SELECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 12:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-don-t-SUBSTRING-work-in-the-LOAD/m-p/910064#M652793</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-22T12:44:30Z</dc:date>
    </item>
  </channel>
</rss>

