<?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 Advice on loading fixed width multi record structures in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610831#M1104449</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;I have a record set which comprises of several header and detail records, all structured differently with a fixed width schema ARRGHHH!. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;H01 INV12345 90012 11/07/2013&lt;/P&gt;&lt;P&gt;H02 ABC Ltd&lt;/P&gt;&lt;P&gt;D01 PO12345&lt;/P&gt;&lt;P&gt;D02 END CAP 00001&lt;/P&gt;&lt;P&gt;D03 VAL0000010 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Schema H01:&lt;/P&gt;&lt;P&gt;1 - 3 = Record ID&lt;/P&gt;&lt;P&gt;5 - 16 = Invoice Number&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The individual record types (H01 &amp;amp; D02 etc) all have their own unique schema but I need all of the information to appear together in my target tables if it's to be of any use. I have tried importing using the fixed width wizards etc and whilst I can get the data in, it's not usable as there is no key to link the records together. Do I need an extension to be able to load this data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Natalie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 15:59:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-07T15:59:37Z</dc:date>
    <item>
      <title>Advice on loading fixed width multi record structures</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610831#M1104449</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;I have a record set which comprises of several header and detail records, all structured differently with a fixed width schema ARRGHHH!. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;H01 INV12345 90012 11/07/2013&lt;/P&gt;&lt;P&gt;H02 ABC Ltd&lt;/P&gt;&lt;P&gt;D01 PO12345&lt;/P&gt;&lt;P&gt;D02 END CAP 00001&lt;/P&gt;&lt;P&gt;D03 VAL0000010 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Schema H01:&lt;/P&gt;&lt;P&gt;1 - 3 = Record ID&lt;/P&gt;&lt;P&gt;5 - 16 = Invoice Number&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The individual record types (H01 &amp;amp; D02 etc) all have their own unique schema but I need all of the information to appear together in my target tables if it's to be of any use. I have tried importing using the fixed width wizards etc and whilst I can get the data in, it's not usable as there is no key to link the records together. Do I need an extension to be able to load this data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Natalie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610831#M1104449</guid>
      <dc:creator />
      <dc:date>2014-04-07T15:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Advice on loading fixed width multi record structures</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610832#M1104450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;File:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;String&lt;/P&gt;&lt;P&gt;H01 INV12345 90012 11/07/2013&lt;/P&gt;&lt;P&gt;H02 ABC Ltd&lt;/P&gt;&lt;P&gt;D01 PO12345&lt;/P&gt;&lt;P&gt;D02 END CAP 00001&lt;/P&gt;&lt;P&gt;D03 VAL0000010&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;subfield(String, ' ' , 2) as Field1,&lt;/P&gt;&lt;P&gt;subfield(String, ' ' , 3) as Field2,&lt;/P&gt;&lt;P&gt;subfield(String, ' ' , 4) as Field3&lt;/P&gt;&lt;P&gt;resident File&lt;/P&gt;&lt;P&gt;where left(String,3)='H01';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate (Table) load &lt;/P&gt;&lt;P&gt;subfield(String, ' ' , 2) as Field2,&lt;/P&gt;&lt;P&gt;subfield(String, ' ' , 3) as Field4&lt;/P&gt;&lt;P&gt;resident File&lt;/P&gt;&lt;P&gt;where left(String,3)='H02';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// concatenate .......&lt;/P&gt;&lt;P&gt;// concatenate .......&lt;/P&gt;&lt;P&gt;// concatenate .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table File;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 18:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610832#M1104450</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-07T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Advice on loading fixed width multi record structures</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610833#M1104451</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;You can't do it automatically. Load every data as one field and parse every row using string functions.&lt;/P&gt;&lt;P&gt;If schemes are not supposed to change, it's easy to hardcode the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you describe other schemes ? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 18:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610833#M1104451</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-07T18:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Advice on loading fixed width multi record structures</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610834#M1104452</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;The schemas will not change so I will follow the suggested approach. Many thanks for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 08:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610834#M1104452</guid>
      <dc:creator />
      <dc:date>2014-04-08T08:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Advice on loading fixed width multi record structures</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610835#M1104453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for providing the example - I will give this a whirl and let you know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gracie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Natalie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 08:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-loading-fixed-width-multi-record-structures/m-p/610835#M1104453</guid>
      <dc:creator />
      <dc:date>2014-04-08T08:19:45Z</dc:date>
    </item>
  </channel>
</rss>

