<?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: File Structure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342778#M839060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide real data and expected result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 06:03:18 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-05-15T06:03:18Z</dc:date>
    <item>
      <title>File Structure</title>
      <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342777#M839059</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;I am having same file but different file structure,&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;1) no1_a_31_12_2016&lt;/P&gt;&lt;P&gt;2) no1_no2_a_31_12_2016&amp;nbsp;&amp;nbsp; (a=filename)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using sub field i am taking date n filename.&lt;/P&gt;&lt;P&gt;I am receiving file structure mentioned above.i should get the file name for both structure(different structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Will u help me in this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342777#M839059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: File Structure</title>
      <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342778#M839060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide real data and expected result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 06:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342778#M839060</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-15T06:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: File Structure</title>
      <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342779#M839061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="File structure.JPG" class="jive-image image-1" src="/legacyfs/online/163304_File structure.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is the File Format..We are receiving from FTP.Based on this file structure,we are splitting the fields 1007 as s.no and&amp;nbsp; &amp;amp; 29_3_2017 AS date. Filename as filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of 1007 if we receive SOU4_1001 how can i get the field into script.we want to get both structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 06:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342779#M839061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T06:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: File Structure</title>
      <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342780#M839062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need SOU4_1001 value in s.no? or just want 1001??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 06:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342780#M839062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T06:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: File Structure</title>
      <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342781#M839063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, You have this filelist in Field? I am assuming you must&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you search on how &lt;STRONG&gt;SubField()&lt;/STRONG&gt; function does in Qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 07:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342781#M839063</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-15T07:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: File Structure</title>
      <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342782#M839064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;am not sure but you can use FilebaseName() function to get it.&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;filebasename()&amp;nbsp; as Filename,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Chanty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 07:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342782#M839064</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-05-15T07:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: File Structure</title>
      <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342783#M839065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all.Thanks for ur rly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean to say,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;For Example;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1001_29_03_2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We are using subfield(filename,'_',1) as S.NO.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(filename,'_',2) as day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Month,Year viceversa&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here we are receiving 2 types of file structure. Script should Satisfies both type of file Structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this "1001_29_03_2017 " the script is working fine.&lt;/P&gt;&lt;P&gt;when we receive this type of file structure its is taking 2nd position as day "SOU4_1007_&lt;SPAN style="font-size: 13.3333px;"&gt;29_03_2017".but here we need &lt;SPAN style="font-size: 13.3333px;"&gt;SOU4_1007&lt;/SPAN&gt; as S.No&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 07:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342783#M839065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T07:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: File Structure</title>
      <link>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342784#M839066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Hi Sindhu ja,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: verdana, geneva;"&gt;Right(FileBaseName(),10) as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: verdana, geneva;"&gt;Left(FileBaseName(), Len(FileBaseName()) - 11) as S.NO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;STRONG&gt;From Source;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;If you want to format date field then use the below one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;STRONG&gt;Date(Date#(&lt;SPAN style="font-size: 13.3333px;"&gt;Right(FileBaseName(),10)&lt;/SPAN&gt;,'DD_MM_YYYY'),'Desired Format')&lt;/STRONG&gt; as Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 08:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-Structure/m-p/1342784#M839066</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-05-15T08:13:26Z</dc:date>
    </item>
  </channel>
</rss>

