<?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 FTP import iteration for multiple files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210787#M1206624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have a ftp batch running, or a qvw in batch calling ftpxx.bat file with EXECUTE command, which will download newer files added in last hour and load them in QV. Just a quick idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 15:25:52 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2010-02-09T15:25:52Z</dc:date>
    <item>
      <title>FTP import iteration for multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210786#M1206623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm completely stumped with how I would go about loading in all the .CSV files in a given FTP directory base on the date added to that directory... Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 15:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210786#M1206623</guid>
      <dc:creator />
      <dc:date>2010-02-09T15:06:28Z</dc:date>
    </item>
    <item>
      <title>FTP import iteration for multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210787#M1206624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have a ftp batch running, or a qvw in batch calling ftpxx.bat file with EXECUTE command, which will download newer files added in last hour and load them in QV. Just a quick idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 15:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210787#M1206624</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-09T15:25:52Z</dc:date>
    </item>
    <item>
      <title>FTP import iteration for multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210788#M1206625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey thanks for the reply - I'm still not sure how I would do that though?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 15:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210788#M1206625</guid>
      <dc:creator />
      <dc:date>2010-02-09T15:50:40Z</dc:date>
    </item>
    <item>
      <title>FTP import iteration for multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210789#M1206626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. Let me explain little details.&lt;/P&gt;&lt;P&gt;1. Put code below in a batch file (say GetFileDir.bat). Thanks to &lt;A href="http://www.computing.net/answers/programming/ftp-dos-batch-file/15347.html"&gt;http://www.computing.net/answers/programming/ftp-dos-batch-file/15347.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;@echo off &amp;gt; %0.ftp&lt;BR /&gt;&amp;gt;&amp;gt; %0.ftp echo o mysite.com&lt;BR /&gt;&amp;gt;&amp;gt; %0.ftp echo username&lt;BR /&gt;&amp;gt;&amp;gt; %0.ftp echo password&lt;BR /&gt;&amp;gt;&amp;gt; %0.ftp echo dir&lt;BR /&gt;&amp;gt;&amp;gt; %0.ftp echo bye&lt;BR /&gt;ftp -s:%0.ftp &amp;gt; %0.txt&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;2. Now that you have a list of files in text file, you can read it and loop through them. In the loop you can determine which file you need to download - based on date, file name sequence, etc. For those file, you may call another batch file (say GetMyFile.bat). For this have a look here: &lt;A href="http://www.ericphelps.com/batch/samples/ftp.script.txt"&gt;http://www.ericphelps.com/batch/samples/ftp.script.txt&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 16:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210789#M1206626</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-09T16:03:15Z</dc:date>
    </item>
    <item>
      <title>FTP import iteration for multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210790#M1206627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rakesh - I will look into that way of doing it.&lt;/P&gt;&lt;P&gt;In the last hour I was looking through the QlikView Reference document and came across this subroutine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub DoDir (Root)&lt;/P&gt;&lt;P&gt;for each Ext in 'qvw','qvo','qvs','qvt','qvd','csv'&lt;/P&gt;&lt;P&gt;for each File in filelist (Root&amp;amp;'\*.'&amp;amp;Ext)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;'$(File)' as Name,&lt;/P&gt;&lt;P&gt;FileSize('$(File)') as Size,&lt;/P&gt;&lt;P&gt;FileTime('$(File)') as FileTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;next Ext&lt;/P&gt;&lt;P&gt;for each Dir in dirlist (Root&amp;amp;'\*')&lt;/P&gt;&lt;P&gt;call DoDir (Dir)&lt;/P&gt;&lt;P&gt;next Dir&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;call DoDir ('C:\Temp')&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I put a .CSV file into the C:\Temp directory and tested this but I'm not sure how to actually load the file's contents... I think this may be the right way of going about it and I'll add the FTP stuff in later, but first I want to try doing this with some test files in the C:\Temp folder...&lt;/P&gt;&lt;P&gt;Sorry but I'm a bit new to QV &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 16:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FTP-import-iteration-for-multiple-files/m-p/210790#M1206627</guid>
      <dc:creator />
      <dc:date>2010-02-09T16:13:45Z</dc:date>
    </item>
  </channel>
</rss>

