<?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: Filelist loop not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filelist-loop-not-working/m-p/1127335#M629969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should check &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;viTimeSQLExtracts variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Does it contains the full path to your qvd´s?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2016 15:42:59 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2016-07-22T15:42:59Z</dc:date>
    <item>
      <title>Filelist loop not working</title>
      <link>https://community.qlik.com/t5/QlikView/Filelist-loop-not-working/m-p/1127334#M629968</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;&lt;/P&gt;&lt;P&gt;The below chunk of code does not give me the desired output. I am trying to skim through all filenames in a folder and extract the maximum date. Please let me know what might be wrong here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// -----------------------------------------------------------&lt;/P&gt;&lt;P&gt;Let vMaxMonthYear = MakeDate(1900);&lt;/P&gt;&lt;P&gt;For Each vFile in FileList('$(viTimeSQLExtracts)' &amp;amp; 'IPower_Monthly*.qvd')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vCurMonthYear =&amp;nbsp; MonthEnd(MakeDate(subfield('$(vFile)', '_', 3), subfield('$(vFile)', '_', 4)));&lt;/P&gt;&lt;P&gt;&amp;nbsp; If $(vCurMonthYear) &amp;gt; $(vMaxMonthYear) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vMaxMonthYear = $(vCurMonthYear);&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next vFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// For testing purpose only&lt;/P&gt;&lt;P&gt;Let vTest_CurMonthYear =&amp;nbsp; MonthEnd(MakeDate(subfield('$(vFile)', '_', 3), subfield('$(vFile)', '_', 4)));&lt;/P&gt;&lt;P&gt;Trace $(vTest_CurMonthYear);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Trace 'Latest Month: $(vMaxMonthYear)';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 15:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filelist-loop-not-working/m-p/1127334#M629968</guid>
      <dc:creator>lightsection</dc:creator>
      <dc:date>2016-07-22T15:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filelist loop not working</title>
      <link>https://community.qlik.com/t5/QlikView/Filelist-loop-not-working/m-p/1127335#M629969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should check &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;viTimeSQLExtracts variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Does it contains the full path to your qvd´s?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 15:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filelist-loop-not-working/m-p/1127335#M629969</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-22T15:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filelist loop not working</title>
      <link>https://community.qlik.com/t5/QlikView/Filelist-loop-not-working/m-p/1127336#M629970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that was the culprit. Apparently if the variable is not able to find the path, it doesn't throw an error.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 16:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filelist-loop-not-working/m-p/1127336#M629970</guid>
      <dc:creator>lightsection</dc:creator>
      <dc:date>2016-07-22T16:02:15Z</dc:date>
    </item>
  </channel>
</rss>

