<?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: for loop with file exist function in qlik.... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225329#M620558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each file in filelist('C:\HexaProject\SourceDocuments\Inputfiles\*.*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if filetime($(file))&amp;gt;0 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;from $(file)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 10:18:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-03T10:18:32Z</dc:date>
    <item>
      <title>for loop with file exist function in qlik....</title>
      <link>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225327#M620556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our project we having 5 files with name like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\HexaProject\SourceDocuments\Inputfiles\DirectBooking20170101&lt;/P&gt;&lt;P&gt;C:\HexaProject\SourceDocuments\Inputfiles\OnlineBooking20170101&lt;/P&gt;&lt;P&gt;C:\HexaProject\SourceDocuments\Inputfiles\CallBooking20170101&lt;/P&gt;&lt;P&gt;C:\HexaProject\SourceDocuments\Inputfiles\Reference20170101&lt;/P&gt;&lt;P&gt;C:\HexaProject\SourceDocuments\Inputfiles\Cancelled20170101&lt;/P&gt;&lt;P&gt;Every day we need to check these files exist or not …&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If exist than we need to load these files as a concatenated solution in 1 table.&lt;/P&gt;&lt;P&gt;but we need to check the availability of all files if any one file is available than table will load .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Booking Final]:&lt;/P&gt;&lt;P&gt;Booking_wid,&lt;/P&gt;&lt;P&gt;Booking_Type,&lt;/P&gt;&lt;P&gt;Payment_Method&lt;/P&gt;&lt;P&gt;From “Path”….&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest me the way to load these files while using For loop and we need to check each files presence also before doing concatenation……please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 09:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225327#M620556</guid>
      <dc:creator>qliklearnervir</dc:creator>
      <dc:date>2017-03-03T09:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: for loop with file exist function in qlik....</title>
      <link>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225328#M620557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easiest way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vInputFileDate = Date(Floor(YearStart(Today())), 'YYYYMMDD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * &lt;/P&gt;&lt;P&gt;FROM C:\HexaProject\SourceDocuments\Inputfiles\*$(vInputFileDate)&lt;/P&gt;&lt;P&gt;(options and delimiters here);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that 20170101 can also be the result of a variable as set above, and that will load whatever file in the folder meets the "*$(vInputFileDate)" criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you must check whether a single file exist and then load it, then something like &lt;A _jive_internal="true" href="https://community.qlik.com/thread/17774"&gt;this&lt;/A&gt; or &lt;A _jive_internal="true" href="https://community.qlik.com/thread/38880"&gt;this&lt;/A&gt; would do the job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 10:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225328#M620557</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-03-03T10:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: for loop with file exist function in qlik....</title>
      <link>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225329#M620558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each file in filelist('C:\HexaProject\SourceDocuments\Inputfiles\*.*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if filetime($(file))&amp;gt;0 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;from $(file)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 10:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225329#M620558</guid>
      <dc:creator />
      <dc:date>2017-03-03T10:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: for loop with file exist function in qlik....</title>
      <link>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225330#M620559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have tried your scenerio ...but is is only adding 1st file .....&lt;/P&gt;&lt;P&gt;not loading all file......please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here vToday id daily date which we need to pick as code is not bounded for particular date&lt;/P&gt;&lt;P&gt;////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;Directory D:\QlikView\SourceDocuments\InputFiles;&lt;/P&gt;&lt;P&gt;for Each csvfile in filelist ('$(vCSVFilePath)*$(vToday).csv')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD CentralBookingRef, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dateBooked, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrivalDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMail, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Surname, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Town, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; County, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Postcode, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Phone, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Site &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(csvfile)&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;&lt;/P&gt;&lt;P&gt;NEXT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 11:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-loop-with-file-exist-function-in-qlik/m-p/1225330#M620559</guid>
      <dc:creator>qliklearnervir</dc:creator>
      <dc:date>2017-03-03T11:51:59Z</dc:date>
    </item>
  </channel>
</rss>

