<?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 Help to import Text File Without Delimiters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-to-import-Text-File-Without-Delimiters/m-p/167829#M39247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD&lt;BR /&gt; ID&lt;BR /&gt;,NAME&lt;BR /&gt;,subfield(Remainder,' ',1) as V1&lt;BR /&gt;,subfield(Remainder,' ',2) as V2&lt;BR /&gt;,subfield(Remainder,' ',3) as V3&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt; ID&lt;BR /&gt;,left(Remainder,findoneof(Remainder,'1234567890,')-1) as NAME&lt;BR /&gt;, mid(Remainder,findoneof(Remainder,'1234567890,')) as Remainder&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;subfield(DataLine,' ',1) as ID&lt;BR /&gt;subfield(DataLine,' ',2) as Remainder&lt;BR /&gt;;&lt;BR /&gt;LOAD DataLine&lt;BR /&gt;FROM your source&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Mar 2010 01:16:11 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-03-04T01:16:11Z</dc:date>
    <item>
      <title>Help to import Text File Without Delimiters</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-import-Text-File-Without-Delimiters/m-p/167828#M39246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a text file Without Delimiters, example:&lt;/P&gt;&lt;P&gt;88092099 A G NAP MARTI NETO 2,5 3 5,5&lt;BR /&gt;88083888 ABRAAO D S 3,5 2,75 6,25&lt;BR /&gt;88040182 ACI GROLLI CARVALHO 4,25 3,75 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to import this file in five fields:&lt;BR /&gt;&lt;BR /&gt;ID NAME V1 V2 V3&lt;BR /&gt;88092099 A G NAP MARTI NETO 2,5 3 5,5&lt;BR /&gt;88083888 ABRAAO D S 3,5 2,75 6,25&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;Are there any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 23:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-import-Text-File-Without-Delimiters/m-p/167828#M39246</guid>
      <dc:creator />
      <dc:date>2010-03-03T23:24:40Z</dc:date>
    </item>
    <item>
      <title>Help to import Text File Without Delimiters</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-import-Text-File-Without-Delimiters/m-p/167829#M39247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD&lt;BR /&gt; ID&lt;BR /&gt;,NAME&lt;BR /&gt;,subfield(Remainder,' ',1) as V1&lt;BR /&gt;,subfield(Remainder,' ',2) as V2&lt;BR /&gt;,subfield(Remainder,' ',3) as V3&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt; ID&lt;BR /&gt;,left(Remainder,findoneof(Remainder,'1234567890,')-1) as NAME&lt;BR /&gt;, mid(Remainder,findoneof(Remainder,'1234567890,')) as Remainder&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;subfield(DataLine,' ',1) as ID&lt;BR /&gt;subfield(DataLine,' ',2) as Remainder&lt;BR /&gt;;&lt;BR /&gt;LOAD DataLine&lt;BR /&gt;FROM your source&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 01:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-import-Text-File-Without-Delimiters/m-p/167829#M39247</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-04T01:16:11Z</dc:date>
    </item>
    <item>
      <title>Help to import Text File Without Delimiters</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-import-Text-File-Without-Delimiters/m-p/167830#M39248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;subfield() can use a negative index (don't recall where I learned this, it's not in the V8 or V9 Help). So how about:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; subfield(@1,' ',1) as ID,&lt;BR /&gt; mid(@1, index(@1,' ',1)+1, (index(@1,' ', -3) - index(@1,' ',1) -1)) as NAME,&lt;BR /&gt; subfield(@1,' ',-3) as V1,&lt;BR /&gt; subfield(@1,' ',-2) as V2,&lt;BR /&gt; subfield(@1,' ',-1) as V3&lt;BR /&gt;FROM yourFile.txt&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is none, msq);&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Can be simplified if the ID field length is fixed, which it appears to be from your example.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 07:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-import-Text-File-Without-Delimiters/m-p/167830#M39248</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-03-04T07:18:31Z</dc:date>
    </item>
  </channel>
</rss>

