<?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 data from specific files from specific folders in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788973#M1210377</link>
    <description>&lt;P&gt;How to make vcounter = 1 to 5 static&amp;nbsp; to dynamic?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Mar 2021 13:56:10 GMT</pubDate>
    <dc:creator>manoranjan_d</dc:creator>
    <dc:date>2021-03-07T13:56:10Z</dc:date>
    <item>
      <title>Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788685#M1210331</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I want to load data from specific log files(*system*) from multiple specific folders like Folder 1, Folder 4,&amp;nbsp; Folder 6. Could you please tell me the efficient/best way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;from Path\Folder &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;N&lt;/STRONG&gt;&lt;/FONT&gt;/*system*.log&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 13:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788685#M1210331</guid>
      <dc:creator>sagarkharpude</dc:creator>
      <dc:date>2021-03-05T13:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788972#M1210376</link>
      <description>&lt;P&gt;you can use the for next loop:&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptControlStatements/For.htm" target="_blank" rel="noopener"&gt;For..next ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;For vCounter = 1 to 5
Load *
from Path\Folder $(vCounter)/*system*.log
(txt, utf8, embedded labels, delimiter is '\t', msq);
Next &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 13:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788972#M1210376</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-07T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788973#M1210377</link>
      <description>&lt;P&gt;How to make vcounter = 1 to 5 static&amp;nbsp; to dynamic?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 13:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788973#M1210377</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2021-03-07T13:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788981#M1210382</link>
      <description>&lt;P&gt;what is your business rule to determine N in your original code?&amp;nbsp; if the folders are finite then its a finite number.&amp;nbsp; if not then you need a different approach.&amp;nbsp; so it depends you need to define that so others can advise you&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 15:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788981#M1210382</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-07T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788982#M1210383</link>
      <description>&lt;P&gt;if you dont know the number of subfolders then you will need a nested loop:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Data-Connectivity/List-folders-within-a-directory/td-p/88811" target="_blank"&gt;List folders within a directory - Qlik Community - 88811&lt;/A&gt;&lt;/P&gt;&lt;P&gt;your outer loop will give you the folder name so you don't need to use folder$(vcount).&amp;nbsp; you will have a variable that stores the folder name so use that in your inner loop&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;For each vSubDir in dirlist( 'D:\Backup\*' )
  for each vFile in [$(vSubDir)\*system*.log]
     Load *
     from [$(vSubDir)\$(File)]
     (txt, utf8, embedded labels, delimiter is '\t', msq);
  next vFile
Next vSubDir

//you just need to experiment with this part: 
// from [$(vSubDir)\$(File)]
//you will see this in your log&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 07 Mar 2021 15:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788982#M1210383</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-07T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788983#M1210384</link>
      <description>&lt;P&gt;Folder numbers are not sequential. It’s like Folder 1, 4 and 6.&amp;nbsp;&lt;BR /&gt;can I maintain one inline table of required folders &amp;nbsp;name only? So it will be easier to maintain.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 15:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788983#M1210384</guid>
      <dc:creator>sagarkharpude</dc:creator>
      <dc:date>2021-03-07T15:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788985#M1210385</link>
      <description>&lt;P&gt;you can conrol which folder to be processed in the phrase&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; in dirlist( 'D:\Backup\*' )&lt;/LI-CODE&gt;&lt;P&gt;you can use relative paths&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 15:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788985#M1210385</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-07T15:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788986#M1210386</link>
      <description>&lt;P&gt;Can you please tell me how to pick up certain folders?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 15:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788986#M1210386</guid>
      <dc:creator>sagarkharpude</dc:creator>
      <dc:date>2021-03-07T15:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from specific files from specific folders in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788997#M1210387</link>
      <description>&lt;P&gt;use your pattern:&lt;/P&gt;&lt;P&gt;'c:\path\folder *'&lt;/P&gt;&lt;P&gt;from your sample this is what you were using so just use that in the directory list function&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 17:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-specific-files-from-specific-folders-in-the/m-p/1788997#M1210387</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-07T17:36:29Z</dc:date>
    </item>
  </channel>
</rss>

