<?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: Loading all files from single folder into QV document in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535324#M1144325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;i am getting error in&lt;/P&gt;&lt;P&gt;$(vConcatenate).&lt;/P&gt;&lt;P&gt;please help me how to reslove this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 10:21:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-11T10:21:36Z</dc:date>
    <item>
      <title>Loading all files from single folder into QV document</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535321#M1144320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a single QV document where I load three separate documents, each slightly different from each other. The load works fine and everything is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now The manager wants to load new data from a new report each day. It is not possibnle to just generate a new report with all the data, the report has a thirty one-day size limit and the manager wants to keep all the historic data so the new report generated each day will be the previous day's work and will have to be added to the all the previous reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I will accumulate these reports in the following folders:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Skill&lt;/LI&gt;&lt;LI&gt;Volume&lt;/LI&gt;&lt;LI&gt;MRLS&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These folders correspond to the three separate loads in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen a few articles here regarding loading all docs from a single folder or even sub folders. My question is this, since I have three separate loads, each with slightly different rules from each other as the base reports are slightly different, will I need to modify each load independently?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have attached a copy of the QV and the source docs. I have the source files arranged in a directory like so:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;LP Files&lt;UL&gt;&lt;LI&gt;Volume&lt;/LI&gt;&lt;LI&gt;MRSL&lt;/LI&gt;&lt;LI&gt;Skill&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each sub-folder includes two files currently with a new one to be added each day. The three sub-folders correspond to the three loads in my load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to approach this and what is the correct script to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 13:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535321#M1144320</guid>
      <dc:creator />
      <dc:date>2013-08-27T13:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Loading all files from single folder into QV document</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535322#M1144323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the subroutine from the script &lt;A _jive_internal="true" href="https://community.qlik.com/people/hic"&gt;Henric &lt;/A&gt;posted in &lt;A _jive_internal="true" href="https://community.qlik.com/thread/62449"&gt;this discussion&lt;/A&gt; and call that subroutine three times for each subfolder. If you change the line &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;FileList:&lt;/EM&gt;&lt;/SPAN&gt; into &lt;EM&gt;$(Root):&lt;/EM&gt; you will get tables named after the subfolder you passed in as parameter. If you want you can later rename these tables if other names make more sense. Oh, and you want to change the extension to .xls. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sub ScanFolder(Root)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Set vConcatenate = ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FileExtension in 'xls'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FoundFile in filelist( Root &amp;amp; '\*.' &amp;amp; FileExtension)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(Root):&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vConcatenate)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *, '$(FoundFile)' as SourceFile&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(FoundFile)] (biff, embedded labels, table is [Sheet1$]);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vConcatenate = Concatenate;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FoundFile&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FileExtension&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;end sub&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Call ScanFolder('Skill');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Call ScanFolder('Volume');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Call ScanFolder('MRLS');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 17:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535322#M1144323</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-27T17:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loading all files from single folder into QV document</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535323#M1144324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I found a very simple way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had already made sure that all the reports would be loadedwith standardized header, column names, etc. In the folder where they will be stored as source files, I made sure that they all had the same file name with a number appended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the load scrip where the path/filename is for the load file, I just substituted a wildcard (*) for the file number and Voila! QV loads all the files with that file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 18:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535323#M1144324</guid>
      <dc:creator />
      <dc:date>2013-08-27T18:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Loading all files from single folder into QV document</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535324#M1144325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;i am getting error in&lt;/P&gt;&lt;P&gt;$(vConcatenate).&lt;/P&gt;&lt;P&gt;please help me how to reslove this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 10:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-all-files-from-single-folder-into-QV-document/m-p/535324#M1144325</guid>
      <dc:creator />
      <dc:date>2013-10-11T10:21:36Z</dc:date>
    </item>
  </channel>
</rss>

