<?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 Adding file name to qlikview in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Adding-file-name-to-qlikview/m-p/249510#M175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a folder that has many log files each is 4KB, the only place that has a date it in the log file name. I would like to add this as a column inqlikview.&lt;/P&gt;&lt;P&gt;I am able to get all the files to load by using the following script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load @1 as Memo&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;[\\TCSPICEWORKS\ASALogs\CorpUSA\LOG*]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log files are all named "LOG-2012-01-30-122123" I would like to include the "LOG-201201-30"&lt;/P&gt;&lt;P&gt;as a column in my QlikView File or the Date Modified from the log file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2012 18:42:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-02T18:42:35Z</dc:date>
    <item>
      <title>Adding file name to qlikview</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Adding-file-name-to-qlikview/m-p/249510#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a folder that has many log files each is 4KB, the only place that has a date it in the log file name. I would like to add this as a column inqlikview.&lt;/P&gt;&lt;P&gt;I am able to get all the files to load by using the following script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load @1 as Memo&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;[\\TCSPICEWORKS\ASALogs\CorpUSA\LOG*]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log files are all named "LOG-2012-01-30-122123" I would like to include the "LOG-201201-30"&lt;/P&gt;&lt;P&gt;as a column in my QlikView File or the Date Modified from the log file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 18:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Adding-file-name-to-qlikview/m-p/249510#M175</guid>
      <dc:creator />
      <dc:date>2012-02-02T18:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding file name to qlikview</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Adding-file-name-to-qlikview/m-p/249511#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the modification timestamp, just use&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;filetime() as ModTimeStamp,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use filename() and extract the Date, maybe using subfield() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;if you don't want a timestamp but a date of your modification, use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;daystart(filetime()) as ModDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 18:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Adding-file-name-to-qlikview/m-p/249511#M176</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-02T18:50:08Z</dc:date>
    </item>
  </channel>
</rss>

