<?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: Load files from subfolders in one load script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152336#M632437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this did the job exactly as you had it written in the post (just changing to the actual fields and filepaths on my side).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for your replies.&amp;nbsp; Sorry I can only give the one correct answer credit, but I gave helpful credits to the other answers. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 17:46:50 GMT</pubDate>
    <dc:creator>stevelord</dc:creator>
    <dc:date>2016-06-09T17:46:50Z</dc:date>
    <item>
      <title>Load files from subfolders in one load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152331#M632432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, there was a legacy habit of saving new files into folders named for the date they were received and a current desire to see if we can pull all of those files into qlikview in an efficient way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for fun, I tried just putting an * for a folder name, but I didn't expect that to work and sure enough it didn't work.&amp;nbsp; I have some hope there's maybe a 2-step and a variable type approach to move through the folders.&amp;nbsp; Hoping to avoid making a separate piece of load script for each folder or having to move all the files to a single folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD MemberID&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;(txt, codepage is 1252, embedded labels, delimiter is '|', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any advise!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(99% of the data exists in the database, but this would be used to either pickup the piece missing from the database or to audit the database data. Also the files were generated by someone else's automated process, so we're hopeful their internal structures are all consistent in terms of delimiters and field names etc.&amp;nbsp; We'd be able to tell which errored by the gaps in the dates though.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 14:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152331#M632432</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-06-08T14:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Load files from subfolders in one load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152332#M632433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this thread can be useful &lt;A href="https://community.qlik.com/thread/66336"&gt;Loop through root directory (including subfolders) and list filenames of *.csv&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Karla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 02:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152332#M632433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T02:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load files from subfolders in one load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152333#M632434</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;please try this, may be help full for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUB Scanfolder(Root)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For each FileExtension in 'xlsx'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR Each FoundFile in FileList(Root &amp;amp;'\*.'&amp;amp; FileExtension)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAMES, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAL, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEARS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;STRONG&gt;[$(FoundFile)]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Next FoundFile&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEXT FileExtension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Each SubDirectory in DirList (Root &amp;amp; '\*' )&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call ScanFolder(SubDirectory)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next SubDirectory&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call ScanFolder&lt;/STRONG&gt;(&lt;SPAN style="color: #ff00ff;"&gt;'&lt;STRONG&gt;&lt;EM&gt;D:\Personal\LOADING DATA FROM MULTIPLE FOLDERS&lt;/EM&gt;&lt;/STRONG&gt;') ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&lt;STRONG&gt;&lt;EM&gt;Note:-&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&lt;EM&gt;&lt;STRONG&gt;Instead&amp;nbsp; of&amp;nbsp; "&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;D:\Personal\LOADING DATA FROM MULTIPLE FOLDERS"&amp;nbsp;&amp;nbsp;&amp;nbsp; Give your source file Folder Name.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 07:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152333#M632434</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2016-06-09T07:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load files from subfolders in one load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152334#M632435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14654591858515006 jive_text_macro" jivemacro_uid="_14654591858515006" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;SET vDataPath = 'C:\Activity\Client\';&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;FOR Each vDir in DirList('$(vDataPath)*')&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; LOAD MemberID&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; FROM&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; [$(vDir)\ClientActivity*.txt]&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; (txt, codepage is 1252, embedded labels, delimiter is '|', msq);&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;NEXT&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 07:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152334#M632435</guid>
      <dc:creator>pho3nix90</dc:creator>
      <dc:date>2016-06-09T07:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load files from subfolders in one load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152335#M632436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, this didn't work for me initially, but now I see the other half of your script when I login.&amp;nbsp; (Maybe I forgot to hit 'more' on the email side I was reading.)&amp;nbsp; The 'for each next' loop someone else suggested worked off the bat, so giving that one correct answer credit and calling it a day.&amp;nbsp; I will give this one helpful credit since it probably works and I just lack time for further testing right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152335#M632436</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-06-09T17:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load files from subfolders in one load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152336#M632437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this did the job exactly as you had it written in the post (just changing to the actual fields and filepaths on my side).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for your replies.&amp;nbsp; Sorry I can only give the one correct answer credit, but I gave helpful credits to the other answers. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-from-subfolders-in-one-load-script/m-p/1152336#M632437</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-06-09T17:46:50Z</dc:date>
    </item>
  </channel>
</rss>

