<?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 Load by length in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-by-length/m-p/1737824#M452755</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to load some data that has main account numbers and user accounts. The main accounts are 6 digits long and the users are 10 digits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using the LEN function as shown below but I keep getting the following error. Can someone help me with the easiest way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ODBC CONNECT32 TO Qlik (XUserId is bAFVVTJMSbbOWSJOTDcCTCA, XPassword is QfeZSWdNODZCWcNGSG);
SQL SELECT MPE0PA as Cust,
Len(MPE0PA) as LenCust,
    MPITNO as ItemNO,
    MPPOPN as Alias
FROM EIT.MVXCDTA.MITPOP00;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eureka99_0-1598021506061.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39425iEE92A531D70B160F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Eureka99_0-1598021506061.png" alt="Eureka99_0-1598021506061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:12:02 GMT</pubDate>
    <dc:creator>Eureka99</dc:creator>
    <dc:date>2024-11-16T18:12:02Z</dc:date>
    <item>
      <title>Load by length</title>
      <link>https://community.qlik.com/t5/QlikView/Load-by-length/m-p/1737824#M452755</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to load some data that has main account numbers and user accounts. The main accounts are 6 digits long and the users are 10 digits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using the LEN function as shown below but I keep getting the following error. Can someone help me with the easiest way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ODBC CONNECT32 TO Qlik (XUserId is bAFVVTJMSbbOWSJOTDcCTCA, XPassword is QfeZSWdNODZCWcNGSG);
SQL SELECT MPE0PA as Cust,
Len(MPE0PA) as LenCust,
    MPITNO as ItemNO,
    MPPOPN as Alias
FROM EIT.MVXCDTA.MITPOP00;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eureka99_0-1598021506061.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39425iEE92A531D70B160F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Eureka99_0-1598021506061.png" alt="Eureka99_0-1598021506061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-by-length/m-p/1737824#M452755</guid>
      <dc:creator>Eureka99</dc:creator>
      <dc:date>2024-11-16T18:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load by length</title>
      <link>https://community.qlik.com/t5/QlikView/Load-by-length/m-p/1737840#M452760</link>
      <description>&lt;P&gt;LEN function is native to Qlik and supported in few database like Sql server. Looks like your source database does not support that function. In this case, either you can use preceding load or use source native function&amp;nbsp;&lt;/P&gt;&lt;P&gt;With preceding load you can use Qlik's native function like below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ODBC CONNECT32 TO Qlik (XUserId is bAFVVTJMSbbOWSJOTDcCTCA, XPassword is QfeZSWdNODZCWcNGSG);

LOAD Cust,
Len(MPE0PA) as LenCust,
   ItemNO,
   Alias ;
SQL SELECT MPE0PA as Cust,
    MPE0PA,
    MPITNO as ItemNO,
    MPPOPN as Alias
FROM EIT.MVXCDTA.MITPOP00;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or check which function is supported by the source to get the lenght of string. Give it a try as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SQL SELECT MPE0PA as Cust,
length(MPE0PA) as LenCust,
    MPITNO as ItemNO,
    MPPOPN as Alias
FROM EIT.MVXCDTA.MITPOP00;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-by-length/m-p/1737840#M452760</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-21T15:43:42Z</dc:date>
    </item>
  </channel>
</rss>

