<?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: Read file if exist - variable file-name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272829#M400195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the variable to capture the time and date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 08:41:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-16T08:41:14Z</dc:date>
    <item>
      <title>Read file if exist - variable file-name</title>
      <link>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272827#M400193</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;Is it possible in Qlikview to check if a csv-file is in a map and if it is, Qlikview should read this file.&lt;/P&gt;&lt;P&gt;The filename of the csv file is variable. It always starts with Time and a date.&lt;/P&gt;&lt;P&gt;Time20161215.csv, Time20161214, ..&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that if a file with Time*.csv exist I read all the Time*.csv files.&lt;/P&gt;&lt;P&gt;Can I make this script variable? Like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF (NOT isNull(qvdCreateTime('..\\FileLocation\&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Time*.csv&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'))) THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But this isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have, but the first line in the script should be variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (NOT isNull(qvdCreateTime('..\\FileLocation\&lt;SPAN style="font-size: 13.3333px;"&gt;Time20161215.csv&lt;/SPAN&gt;'))) THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;@1 as Number, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Name&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[&lt;SPAN style="font-size: 13.3333px;"&gt;..\\FileLocation\&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Time*.csv&lt;/SPAN&gt;]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, explicit labels, delimiter is ';', header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 08:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272827#M400193</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2016-12-16T08:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read file if exist - variable file-name</title>
      <link>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272828#M400194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a simple loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFile in FileList('&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;..\\FileLocation\&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Time*&lt;/SPAN&gt;.csv')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as Number,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Name&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(vFile)] &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(txt, codepage is 1252, explicit labels, delimiter is ';', header is 1 lines)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&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;If there are no csv files there then nothing will be loaded without any error being generated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 08:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272828#M400194</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-16T08:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read file if exist - variable file-name</title>
      <link>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272829#M400195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the variable to capture the time and date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 08:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272829#M400195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-16T08:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read file if exist - variable file-name</title>
      <link>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272830#M400196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Gysbert,&lt;/P&gt;&lt;P&gt;This works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 08:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-file-if-exist-variable-file-name/m-p/1272830#M400196</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2016-12-16T08:46:11Z</dc:date>
    </item>
  </channel>
</rss>

