<?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: Incremental Load using a Loop? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-using-a-Loop/m-p/467779#M695886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you... I will try this, but I have already tried a similar script from another site (almost identical) and QV errors saying no resident table Files not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will reply back after trying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2013 21:13:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-18T21:13:38Z</dc:date>
    <item>
      <title>Incremental Load using a Loop?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-using-a-Loop/m-p/467777#M695884</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 requirement to take a group of monthly files, say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data_file1_20130131&lt;/P&gt;&lt;P&gt;data_file2_20130131&lt;/P&gt;&lt;P&gt;data_file3_20130131&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are of different types and contain different data, but I merge them in the scripts and have a final output into a QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next month I would get a new group of files in the same directory, say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data_file1_20130228&lt;/P&gt;&lt;P&gt;data_file2_20130228&lt;/P&gt;&lt;P&gt;data_file3_20130228&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to load the new files and check if the data already exists in the QVD, I would do this by loading the QVD with a date column made up from the last 8 characters of the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to write the solution to do an incremental load, or a full reload using all the files in the directory, but one group at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I was thinking, and would welcome some help please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get a list of all files in a directory and take last 8 characters as the date.&amp;nbsp; This would then give me the unique number of file groups, i.e. in above example we would get 2 unique dates.﻿&lt;/LI&gt;&lt;LI&gt;Start the load process and check if the solution qvd exists, let's say it's called FACT.qvd﻿&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If qvd does not exist then a full load can take place by looping through the group files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If qvd exists then select out of the qvd count of records for the date being processed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If no records then incremental load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got example scripts that processes files in groups (or collections) in an iterative manner please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shakil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 12:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-using-a-Loop/m-p/467777#M695884</guid>
      <dc:creator />
      <dc:date>2013-04-18T12:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load using a Loop?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-using-a-Loop/m-p/467778#M695885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably easiest is to &lt;A _jive_internal="true" href="https://community.qlik.com/message/331450#331450"&gt;simply move the source files&lt;/A&gt; after they've been processed. But if you want to check the filenames instead look &lt;A _jive_internal="true" href="https://community.qlik.com/message/334001"&gt;here&lt;/A&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 19:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-using-a-Loop/m-p/467778#M695885</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-18T19:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load using a Loop?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-using-a-Loop/m-p/467779#M695886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you... I will try this, but I have already tried a similar script from another site (almost identical) and QV errors saying no resident table Files not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will reply back after trying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 21:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-using-a-Loop/m-p/467779#M695886</guid>
      <dc:creator />
      <dc:date>2013-04-18T21:13:38Z</dc:date>
    </item>
  </channel>
</rss>

