<?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: Dynamic loading of text file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415144#M796269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kumanshiki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your solution! As I was using Qlikview Personal Edition and I am not able to open your QVW. Are you able to paste the full code in the reply? Thanks a lot in advance! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;QianNing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Dec 2017 22:00:17 GMT</pubDate>
    <dc:creator>s10157754</dc:creator>
    <dc:date>2017-12-17T22:00:17Z</dc:date>
    <item>
      <title>Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415140#M796265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QLikview Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I had came into a big headache with the following situation whereby my machine system had been modified by adding in extra data to the text file (The extra data is 'Retest'). In addition, some of the machines never standardize the format of saving, resulting this extra data being stored in different columns as compared to other machines when loading into Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had provide sample for the situation I was facing now in the attachment and I will paste my current script in below for your reference. All the way I was using incremental load for daily Qlikview reload. But after the extra data being added to the text file, my script was no longer be able to work. I had been working on this for a couple of days and I couldn't figure out how to improve on my current script. Any advises from you all would be greatly appreciated! Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;SUB&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Scanfolder&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Root&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;let&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px;"&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;ControlQVD&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;Root&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;Index&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;Root&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;,'\',-1))&amp;amp;'control.qvd';&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Let&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px;"&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;SummaryQVD&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;Root&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;Index&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;Root&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;,'\',-1))&amp;amp;'SummaryTable.qvd';&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;If&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;FileSize&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;ControlQVD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;control:&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; [$(ControlQVD)](&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;else&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;control:&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; '' &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; 0; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: green;"&gt;// EmptyTable&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Endif&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;For&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px;"&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;FileExtension&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; 'txt'&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;For&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px;"&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;FoundFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;FileList&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;Root&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &amp;amp;'\AABB_????_???_????.'&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;FileExtension&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Let&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px;"&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;t&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;alt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;('filename','$(FoundFile)'),0);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;If&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;t&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;control: &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; '$(FoundFile)' &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; 1; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: green;"&gt;// Keep record of the newly added file;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;SummaryTable:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;@1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;@2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;@3&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Result&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; [$(FoundFile)]&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;codepage&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;delimiter&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; ';', &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;msq&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Endif&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Next&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px;"&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;FoundFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Next&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px;"&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;FileExtension&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;If&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;('control') &amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: green;"&gt;// Check if the control table has been incremented?&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;store&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; control &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; [$(ControlQVD)](&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Drop&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; control;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Endif&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;If&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;('SummaryTable') &amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: green;"&gt;// Check if the summary table has been incremented?&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;If&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;FileSize&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;('$(SummaryQVD)') &amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;(SummaryTable) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; [$(SummaryQVD)](&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Endif&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;store&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; SummaryTable &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; [$(SummaryQVD)](&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Drop&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; SummaryTable;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Endif&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;End&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Call&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;ScanFolder&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;('C:\Users\User\Desktop\Machine\Machine1'); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: green;"&gt;//Loop through all the Machine folders&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Call&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;ScanFolder&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;('C:\Users\User\Desktop\Machine\Machine2');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Call&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;ScanFolder&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;('C:\Users\User\Desktop\Machine\Machine3');&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;IncrementalLoad: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: green;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: maroon;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 9pt; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';"&gt;Result&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 9pt;"&gt;);&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;QianNing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415140#M796265</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415141#M796266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your &lt;SPAN style="background-color: #f6d5d9;"&gt;FileList &lt;/SPAN&gt;mask is &lt;SPAN lang="en"&gt;incorrect. Change in your script this line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For each FoundFile in FileList(Root &amp;amp;'\&lt;STRONG&gt;AABB_???_????_???_????&lt;/STRONG&gt;.txt')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2017 14:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415141#M796266</guid>
      <dc:creator>mariusz_kumansk</dc:creator>
      <dc:date>2017-12-16T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415142#M796267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kumanski,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you reply. I did changed the coding in my script but I am still unable to load the new data ('Retest') into my Qlikview data model. Any other suggestions? Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187223_Untitled.png" style="height: 440px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB Scanfolder(Root)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let ControlQVD = left(Root,Index(Root,'\',-1))&amp;amp;'control.qvd';&lt;/P&gt;&lt;P&gt;Let SummaryQVD = left(Root,Index(Root,'\',-1))&amp;amp;'SummaryTable.qvd';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If FileSize(ControlQVD) then&lt;/P&gt;&lt;P&gt;control:load filename, timestamp from [$(ControlQVD)](qvd);&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;control:load '' as filename, now() as timestamp AutoGenerate 0; // EmptyTable&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each FileExtension in 'txt'&lt;/P&gt;&lt;P&gt;For each FoundFile in FileList(Root &amp;amp;'\AABB_???_????_???_????.'&amp;amp; FileExtension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let t = alt(FieldIndex('filename','$(FoundFile)'),0);&lt;/P&gt;&lt;P&gt;If&amp;nbsp; t = 0 then&lt;/P&gt;&lt;P&gt;control: load '$(FoundFile)' as filename, now() as timestamp AutoGenerate 1; // Keep record of the newly added file;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SummaryTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM [$(FoundFile)]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next FoundFile&lt;/P&gt;&lt;P&gt;Next FileExtension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If NoOfRows('control') &amp;gt; 0 then // Check if the control table has been incremented?&lt;/P&gt;&lt;P&gt;store control into [$(ControlQVD)](qvd);&lt;/P&gt;&lt;P&gt;Drop Table control;&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If NoOfRows('SummaryTable') &amp;gt; 0 then // Check if the summary table has been incremented?&lt;/P&gt;&lt;P&gt;If FileSize('$(SummaryQVD)') &amp;gt; 0 then&lt;/P&gt;&lt;P&gt;Concatenate(SummaryTable) load * from [$(SummaryQVD)](qvd);&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;P&gt;store SummaryTable into [$(SummaryQVD)](qvd);&lt;/P&gt;&lt;P&gt;Drop Table SummaryTable;&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call ScanFolder('C:\Users\User\Desktop\Machine\Machine1'); //Loop through all the Machine folders&lt;/P&gt;&lt;P&gt;Call ScanFolder('C:\Users\User\Desktop\Machine\Machine2');&lt;/P&gt;&lt;P&gt;Call ScanFolder('C:\Users\User\Desktop\Machine\Machine3');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IncrementalLoad:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 02:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415142#M796267</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-12-17T02:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415143#M796268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you have a different structure of your files. I added a simple switch that counts columns in your file and loads data. You should use a tab in your script to make the code more readable (like in the attached file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldCount:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;[@1:n] as line&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;[$(FoundFile)]&lt;/P&gt;&lt;P&gt;(fix, codepage is 1252, no labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCount = null();&lt;/P&gt;&lt;P&gt;// count columns&lt;/P&gt;&lt;P&gt;LET vCount = &lt;STRONG&gt; SubStringCount(Peek('line',0,'FieldCount'), ';');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LET vLine = null();&lt;/P&gt;&lt;P&gt;LET vLine =&amp;nbsp; Peek('line',0,'FieldCount');&lt;/P&gt;&lt;P&gt;// drop table &lt;/P&gt;&lt;P&gt;DROP Table FieldCount;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE ' ============== Columns: $(vCount) ==============';&lt;/P&gt;&lt;P&gt;TRACE '$(vLine)';&lt;/P&gt;&lt;P&gt;TRACE ' =========================================';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &lt;STRONG&gt;vCount = 2&lt;/STRONG&gt; THEN&lt;/P&gt;&lt;P&gt;SummaryTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Type,&lt;/P&gt;&lt;P&gt;@3 as Result,&lt;/P&gt;&lt;P&gt;null() as NewField&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;[$(FoundFile)]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&lt;STRONG&gt; vCount = 3&lt;/STRONG&gt; THEN&lt;/P&gt;&lt;P&gt;SummaryTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Result,&lt;/P&gt;&lt;P&gt;@4 as NewField&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;[$(FoundFile)]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 19:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415143#M796268</guid>
      <dc:creator>mariusz_kumansk</dc:creator>
      <dc:date>2017-12-17T19:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415144#M796269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kumanshiki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your solution! As I was using Qlikview Personal Edition and I am not able to open your QVW. Are you able to paste the full code in the reply? Thanks a lot in advance! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;QianNing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 22:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415144#M796269</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-12-17T22:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415145#M796270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 22:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415145#M796270</guid>
      <dc:creator>mariusz_kumansk</dc:creator>
      <dc:date>2017-12-17T22:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415146#M796271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kumanshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help! You had solved my problem, appreciated a lot for your kind effort! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;QianNing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 22:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415146#M796271</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-12-17T22:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415147#M796272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember to mark this topic as&amp;nbsp; resolved. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 22:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415147#M796272</guid>
      <dc:creator>mariusz_kumansk</dc:creator>
      <dc:date>2017-12-17T22:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loading of text file</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415148#M796273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;A href="https://community.qlik.com/message/1402859"&gt;Loading data from a specific date onwards&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 02:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-text-file/m-p/1415148#M796273</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-12-18T02:31:48Z</dc:date>
    </item>
  </channel>
</rss>

