<?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: remove non static header from a file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294955#M67783</link>
    <description>&lt;P&gt;try with this&lt;/P&gt;
&lt;P&gt;flag=row2.line.equals("AccId|Branch Address|Legal Entity|Cross Border")?true:Var.PreFalg==null?false:Var.PreFalg&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 23:40:42 GMT</pubDate>
    <dc:creator>vboppudi</dc:creator>
    <dc:date>2018-04-24T23:40:42Z</dc:date>
    <item>
      <title>remove non static header from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294951#M67779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have a use case where a file comes to my system daily has multiple headers.&lt;/P&gt; 
&lt;P&gt;The no. of header counts are not same for each file. They can be 1,5,10, etc but there is an identification that says where the header ends.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;E.g&amp;nbsp; Inside the file, here in the below example the record begins with "&lt;SPAN&gt;Cards_14Q1_1&lt;/SPAN&gt;"&amp;nbsp;&amp;nbsp;then headers, end of header(EOH), actual data header followed by actual data elements&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Cards_14Q1_1&lt;BR /&gt;20180331&lt;BR /&gt;Month-End&lt;BR /&gt;45678098&lt;BR /&gt;Feed Name| Load Status|Date&lt;BR /&gt;TN-MT-34671| WAITING|&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;TN-MT-34871| WAITING|&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;NR-PP-14678|WAITING|&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;TN-MT-34872| WAITING|&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;EOH&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;AccId|Branch Address|Legal Entity|Cross Border&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;XB124|920|100|N&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;67894|920|110|N&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;B1000|857|100|Y&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Expected output after removing the headers:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;XB124|920|100|N&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;67894|920|110|N&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;B1000|857|100|Y&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Please advise.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Brat&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 22:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294951#M67779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-24T22:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: remove non static header from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294952#M67780</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Are you looking for the following output?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RemoveHeader1.PNG" style="width: 678px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lx00.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138578iF4C97666D1E6C5F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lx00.png" alt="0683p000009Lx00.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RemoveHeader2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwnI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138259i36FDB03E1D802824/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwnI.png" alt="0683p000009LwnI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;flag:&amp;nbsp;row2.line.equals("Cards_14Q1_1")?false:row2.line.equals("AccId|Branch Address|Legal Entity|Cross Border")?true:Var.PreFalg&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 23:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294952#M67780</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-24T23:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: remove non static header from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294953#M67781</link>
      <description>Hi Veera,&lt;BR /&gt;Thanks for your quick reply. Yes that is my expected output.&lt;BR /&gt;&lt;BR /&gt;I have further query what if the first record for each file does not start with value “Cards_14Q_1” meaning the first record can be any value which is unknown.&lt;BR /&gt;&lt;BR /&gt;Will the below provided solution work?&lt;BR /&gt;&lt;BR /&gt;Thanks for the help!</description>
      <pubDate>Tue, 24 Apr 2018 23:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294953#M67781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-24T23:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: remove non static header from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294954#M67782</link>
      <description>Also I would like to remove the header from my output.</description>
      <pubDate>Tue, 24 Apr 2018 23:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294954#M67782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-24T23:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: remove non static header from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294955#M67783</link>
      <description>&lt;P&gt;try with this&lt;/P&gt;
&lt;P&gt;flag=row2.line.equals("AccId|Branch Address|Legal Entity|Cross Border")?true:Var.PreFalg==null?false:Var.PreFalg&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 23:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294955#M67783</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-24T23:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: remove non static header from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294956#M67784</link>
      <description>&lt;P&gt;Please try below for removing header&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RemoveHeader3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwx2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133893iF75EF0E1B6B6E491/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwx2.png" alt="0683p000009Lwx2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 23:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294956#M67784</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-24T23:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: remove non static header from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294957#M67785</link>
      <description>&lt;P&gt;thanks Veera. It went through!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 01:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294957#M67785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-25T01:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: remove non static header from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294958#M67786</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have same issue and I am new to Talend. The way we are hard coding the Header Record is&amp;nbsp;not going to solve my problem. The logic I want to implement is remove all the records preceding EOH and one record after EOH. Is there any dynamic Solution? I am thinking of the following, but not able to design.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Assign Record Number to each Record.&lt;/P&gt; 
&lt;P&gt;2. Find out the Record Number with "EOH"&amp;nbsp; Say EOHRECNUM (Any other record having EOH in between field will not qualify, eg&amp;nbsp;G&lt;SPAN&gt;&lt;STRONG&gt;EOH&lt;/STRONG&gt;YDRO)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;3. Write an expression to filter record number less than equals to EOHRECNUM + 1&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Dhiren&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 02:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-non-static-header-from-a-file/m-p/2294958#M67786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-02T02:58:11Z</dc:date>
    </item>
  </channel>
</rss>

