<?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 issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-issue/m-p/201227#M59427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my problem:&lt;/P&gt;&lt;P&gt;I have a text file with these two lines :&lt;/P&gt;&lt;P&gt;"007";"HEAD OFFICE/DIVISION FORMS"&lt;BR /&gt;"7";"PLUMBING"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load that file using that script :&lt;/P&gt;&lt;P&gt;LOAD @1 as ProductClassCode,&lt;BR /&gt; len(@1) as length,&lt;BR /&gt; @2 as ProductClassDesc&lt;BR /&gt;FROM &lt;C&gt; (ansi, txt, delimiter is ';', no labels, msq);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Here is what I see :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductClassCode,ProductClassDesc,length&lt;BR /&gt;&lt;BR /&gt;007,HEAD OFFICE/DIVISION FORMS,3&lt;BR /&gt;007,PLUMBING,1&lt;/P&gt;&lt;P&gt;Any idea on how to load 1 character when the length is one and three when it is three ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/DOCUME~1/philippe/LOCALS~1/Temp/moz-screenshot-2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/DOCUME~1/philippe/LOCALS~1/Temp/moz-screenshot-1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2010 15:04:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-05T15:04:22Z</dc:date>
    <item>
      <title>load issue</title>
      <link>https://community.qlik.com/t5/QlikView/load-issue/m-p/201227#M59427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my problem:&lt;/P&gt;&lt;P&gt;I have a text file with these two lines :&lt;/P&gt;&lt;P&gt;"007";"HEAD OFFICE/DIVISION FORMS"&lt;BR /&gt;"7";"PLUMBING"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load that file using that script :&lt;/P&gt;&lt;P&gt;LOAD @1 as ProductClassCode,&lt;BR /&gt; len(@1) as length,&lt;BR /&gt; @2 as ProductClassDesc&lt;BR /&gt;FROM &lt;C&gt; (ansi, txt, delimiter is ';', no labels, msq);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Here is what I see :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductClassCode,ProductClassDesc,length&lt;BR /&gt;&lt;BR /&gt;007,HEAD OFFICE/DIVISION FORMS,3&lt;BR /&gt;007,PLUMBING,1&lt;/P&gt;&lt;P&gt;Any idea on how to load 1 character when the length is one and three when it is three ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/DOCUME~1/philippe/LOCALS~1/Temp/moz-screenshot-2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/DOCUME~1/philippe/LOCALS~1/Temp/moz-screenshot-1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 15:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-issue/m-p/201227#M59427</guid>
      <dc:creator />
      <dc:date>2010-01-05T15:04:22Z</dc:date>
    </item>
    <item>
      <title>load issue</title>
      <link>https://community.qlik.com/t5/QlikView/load-issue/m-p/201228#M59428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems Qlikview does the casting automatically and goes wrong.&lt;/P&gt;&lt;P&gt;You should find a way to make sure the cast of the ProductClassCode is string ... now it seems the first line read is interpreted like a numeric 3 long with zero's at the front. Instead of this it needs to be string.&lt;/P&gt;&lt;P&gt;You could try casting it during the load with a string function ... e.g. &lt;I&gt;&lt;B&gt;trim(ProductClassCode) as ProductClassCode&lt;/B&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Don't know if this is the best way, but seems to be a quick solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 15:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-issue/m-p/201228#M59428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-05T15:13:45Z</dc:date>
    </item>
    <item>
      <title>load issue</title>
      <link>https://community.qlik.com/t5/QlikView/load-issue/m-p/201229#M59429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it but it does not solve the issue&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 15:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-issue/m-p/201229#M59429</guid>
      <dc:creator />
      <dc:date>2010-01-05T15:19:59Z</dc:date>
    </item>
    <item>
      <title>load issue</title>
      <link>https://community.qlik.com/t5/QlikView/load-issue/m-p/201230#M59430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;QV interprets the field as a number and since the numeric representation of the field is the same it is displayed in the same way.&lt;BR /&gt;Try this to solve your problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(@1) &lt;B&gt;as&lt;/B&gt; ProductClassCode&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 15:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-issue/m-p/201230#M59430</guid>
      <dc:creator />
      <dc:date>2010-01-05T15:31:25Z</dc:date>
    </item>
    <item>
      <title>load issue</title>
      <link>https://community.qlik.com/t5/QlikView/load-issue/m-p/201231#M59431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot ...&lt;/P&gt;&lt;P&gt;That works.&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 15:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-issue/m-p/201231#M59431</guid>
      <dc:creator />
      <dc:date>2010-01-05T15:41:21Z</dc:date>
    </item>
  </channel>
</rss>

