<?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 check for File name followed by something in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/check-for-File-name-followed-by-something/m-p/760252#M1051444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to check if an excel file starting with something exists in a given folder. The following part of the file name is month so I want to keep it dynamic. Could anyone please help me achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFilename = 'Data_2014' ;&lt;/P&gt;&lt;P&gt;Call FileCheck(vFilename, vSourceFolder, vExists);&lt;/P&gt;&lt;P&gt;If vExists then&lt;/P&gt;&lt;P&gt;set vDataFile = 'Yes' ;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;set vDataFile = 'No' ;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileCheck is a subroutine I have created for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use the for each loop as it if there's no file then it does not enter the loop and hence the value of variable vDataFile remains unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I am unable to paste my qlikview code(or anything) else in this Create(start a discussion) window. Any clue as to why this could be happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 08:45:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-04T08:45:22Z</dc:date>
    <item>
      <title>check for File name followed by something</title>
      <link>https://community.qlik.com/t5/QlikView/check-for-File-name-followed-by-something/m-p/760252#M1051444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to check if an excel file starting with something exists in a given folder. The following part of the file name is month so I want to keep it dynamic. Could anyone please help me achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFilename = 'Data_2014' ;&lt;/P&gt;&lt;P&gt;Call FileCheck(vFilename, vSourceFolder, vExists);&lt;/P&gt;&lt;P&gt;If vExists then&lt;/P&gt;&lt;P&gt;set vDataFile = 'Yes' ;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;set vDataFile = 'No' ;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileCheck is a subroutine I have created for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use the for each loop as it if there's no file then it does not enter the loop and hence the value of variable vDataFile remains unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I am unable to paste my qlikview code(or anything) else in this Create(start a discussion) window. Any clue as to why this could be happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 08:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-for-File-name-followed-by-something/m-p/760252#M1051444</guid>
      <dc:creator />
      <dc:date>2014-11-04T08:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: check for File name followed by something</title>
      <link>https://community.qlik.com/t5/QlikView/check-for-File-name-followed-by-something/m-p/760253#M1051447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you will have to use some kind of loop to enter the subroutine once for every file you find in that location, no?&lt;/P&gt;&lt;P&gt;It's certainly true that if there's no file matching your search_mask, then that loop will not enter the subroutine, so you have to account for that possibiltiy in your code.&lt;/P&gt;&lt;P&gt;Could you just type an example of what the filenames look like and how exactly you want to handle it?&lt;/P&gt;&lt;P&gt;I guess you will have to include the creation of the complete filename to look for in the loop if a part of the filename is to be dynamic.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-for-File-name-followed-by-something/m-p/760253#M1051447</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-04T09:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: check for File name followed by something</title>
      <link>https://community.qlik.com/t5/QlikView/check-for-File-name-followed-by-something/m-p/760254#M1051448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out. putting the check outside the loops work totally fine. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-for-File-name-followed-by-something/m-p/760254#M1051448</guid>
      <dc:creator />
      <dc:date>2014-11-04T09:41:40Z</dc:date>
    </item>
  </channel>
</rss>

