<?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 File Handing in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/File-Handing/m-p/2280203#M55122</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have below&amp;nbsp;logfile(ProcessLog_06062017.txt &amp;nbsp;) and wanted to load into the table by application wise. how to achieve this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FirstApp&lt;/P&gt;
&lt;P&gt;12345 Records FileA&lt;/P&gt;
&lt;P&gt;1345678 Records FileB&lt;/P&gt;
&lt;P&gt;SecondApp &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1111 Records FileC&lt;/P&gt;
&lt;P&gt;7687 Records FileD&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to load the above into the table which is having below structure&lt;/P&gt;
&lt;P&gt;App Name &amp;nbsp;FileName &amp;nbsp; RecordCount &amp;nbsp;LdDate&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstapp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;FileA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12345 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;06062017 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Firstapp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FileB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1345678 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06062017&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SecondApp &amp;nbsp; FileC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;1111 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06062017&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its a logFile (So No column delimiter) &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 22:46:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-15T22:46:07Z</dc:date>
    <item>
      <title>File Handing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Handing/m-p/2280203#M55122</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have below&amp;nbsp;logfile(ProcessLog_06062017.txt &amp;nbsp;) and wanted to load into the table by application wise. how to achieve this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FirstApp&lt;/P&gt;
&lt;P&gt;12345 Records FileA&lt;/P&gt;
&lt;P&gt;1345678 Records FileB&lt;/P&gt;
&lt;P&gt;SecondApp &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1111 Records FileC&lt;/P&gt;
&lt;P&gt;7687 Records FileD&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to load the above into the table which is having below structure&lt;/P&gt;
&lt;P&gt;App Name &amp;nbsp;FileName &amp;nbsp; RecordCount &amp;nbsp;LdDate&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstapp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;FileA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12345 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;06062017 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Firstapp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FileB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1345678 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06062017&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SecondApp &amp;nbsp; FileC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;1111 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06062017&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its a logFile (So No column delimiter) &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 22:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Handing/m-p/2280203#M55122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-15T22:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: File Handing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Handing/m-p/2280204#M55123</link>
      <description>&lt;P&gt;OK, I am going to make a suggestion based on what I am seeing. First of all, you say there is no column separator. There is. You have a space. That should do.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) Use a tFileInputDelimited, set the separator as a space. Create 3 columns&lt;/P&gt; 
&lt;P&gt;2) You know when you have a header row as only the first column will be populated. Use this logic to identify it. You can use a tMap (or a tJavaFlex if your Java is reasonably good) to find this column and store it between rows under the header. In the tMap use a tMap variable for example (they can hold values between rows). Add this column to your "AppName" column&lt;/P&gt; 
&lt;P&gt;3) For the date field I am assuming you are using the date of the file or the date of processing. This should be relatively easy&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've not given a detailed explanation, but a high level method. It is much better you struggle on the right path, than get given the answer. The hardest part here is storing the value between rows and ensuring they are updated as and when required. I have a tutorial based on this sort of logic (&lt;A href="https://www.rilhia.com/quicktips/quick-tip-compare-row-value-against-value-previous-row" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/quicktips/quick-tip-compare-row-value-against-value-previous-row&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 09:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Handing/m-p/2280204#M55123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-16T09:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: File Handing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Handing/m-p/2280205#M55124</link>
      <description>&lt;P&gt;Thanks for the direction. I have achieved the solution by comparing previous row vs current row. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not consider space as delimiter because there is a space in file name and application name. Hence i used tfileinputPositional .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 23:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Handing/m-p/2280205#M55124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-16T23:06:03Z</dc:date>
    </item>
  </channel>
</rss>

