<?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: FileName Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908566#M315493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[ taID, taAccount, taSCREENNME&lt;/P&gt;&lt;P&gt;1, @account, SAB&lt;/P&gt;&lt;P&gt;2, @anotheracct, BIL&lt;/P&gt;&lt;P&gt;3, @accountthree, BAN];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 15:58:31 GMT</pubDate>
    <dc:creator>evansabres</dc:creator>
    <dc:date>2015-07-21T15:58:31Z</dc:date>
    <item>
      <title>FileName Function</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908562#M315489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a loop script for my application that appears as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;DIRECTORY&lt;/STRONG&gt;&lt;/SPAN&gt; 'Q:\qlkvw\prod\data\digital\social'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;FOR&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;EACH&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;vFileName&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FILELIST&lt;/SPAN&gt; ('Q:\qlkvw\prod\data\digital\social\*.csv') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; [$(vFileName)] (&lt;SPAN style="color: #0000ff;"&gt;txt&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;codepage&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; 1252, &lt;SPAN style="color: #0000ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; ',', &lt;SPAN style="color: #0000ff;"&gt;msq&lt;/SPAN&gt;);&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;NEXT&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;vFileName&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;I have an inline table that has a list of accounts, which I have the filed called taSCREENNME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each File appears in this manner (from the data warehouse) YYYY-MM-aggr-SAB-xxxxxx, and there are 12 other thee letter variations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to extract the SAB (and the other three letter variations)&amp;nbsp; from the filename and rename as taSCREENME to link the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible within the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908562#M315489</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2015-07-21T15:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: FileName Function</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908563#M315490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it always three dash &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/minus.png" /&gt; away from the left? If that's true, you can use Subfield function here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;taSCREENNME, '-',4) &amp;amp; '-' &amp;amp; SubField(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;taSCREENNME, '-', 5) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;taSCREENNME&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908563#M315490</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: FileName Function</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908564#M315491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;taSCREENNME is a field that I created in my in-line table. I need to re-create the FileName to match a part of the in-line table field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908564#M315491</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2015-07-21T15:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: FileName Function</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908565#M315492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some of the file names so that we can see the format they follow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908565#M315492</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T15:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: FileName Function</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908566#M315493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[ taID, taAccount, taSCREENNME&lt;/P&gt;&lt;P&gt;1, @account, SAB&lt;/P&gt;&lt;P&gt;2, @anotheracct, BIL&lt;/P&gt;&lt;P&gt;3, @accountthree, BAN];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908566#M315493</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2015-07-21T15:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: FileName Function</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908567#M315494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like expected output, right? How does the raw data looks like Evan?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function/m-p/908567#M315494</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T16:01:50Z</dc:date>
    </item>
  </channel>
</rss>

