<?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 Header and footer with row count in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Header-and-footer-with-row-count/m-p/2271900#M49352</link>
    <description>Hi&lt;BR /&gt;I have a quick question related to header and footer&lt;BR /&gt;I have an Excel file which needs to be converted to pipe delimited before fetching first record I need to get current date and a pipe delimited with how many records or sent into text file&lt;BR /&gt;Example: 20200525|850&lt;BR /&gt;After processing the file&lt;BR /&gt;at the end of the file it should say as END</description>
    <pubDate>Sat, 16 Nov 2024 02:20:41 GMT</pubDate>
    <dc:creator>TharunJoshi</dc:creator>
    <dc:date>2024-11-16T02:20:41Z</dc:date>
    <item>
      <title>Header and footer with row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-footer-with-row-count/m-p/2271900#M49352</link>
      <description>Hi&lt;BR /&gt;I have a quick question related to header and footer&lt;BR /&gt;I have an Excel file which needs to be converted to pipe delimited before fetching first record I need to get current date and a pipe delimited with how many records or sent into text file&lt;BR /&gt;Example: 20200525|850&lt;BR /&gt;After processing the file&lt;BR /&gt;at the end of the file it should say as END</description>
      <pubDate>Sat, 16 Nov 2024 02:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-footer-with-row-count/m-p/2271900#M49352</guid>
      <dc:creator>TharunJoshi</dc:creator>
      <dc:date>2024-11-16T02:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Header and footer with row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-footer-with-row-count/m-p/2271901#M49353</link>
      <description>&lt;P&gt;Add a subjob with these components&amp;nbsp;tFixedFlowInput --&amp;gt; tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;This subjob must be connected by an OnSubjobOk trigger to the subjob where the Excel file content is transfered to the output file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For tFixedFlowInput, create a 2 fields schema (today and records) then complete the table with the following values:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;today:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;TalendDate.formatDate("yyyyMMdd", TalendDate.getCurrentDate())&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;records:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;((Integer)globalMap.get("tFileOutputDelimited_1_NB_LINE"))&lt;/FONT&gt;&lt;BR /&gt;here,&amp;nbsp;tFileOutputDelimited_1 is supposed to be the output component where records have been written from the Excel file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For&amp;nbsp;tFileOutputDelimited, reuse the same file name as for&amp;nbsp;tFileOutputDelimited_1, select | as the field separator and tick the option "Appen" to write the next record at the end.&lt;/P&gt;&lt;P&gt;This should work.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 08:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-footer-with-row-count/m-p/2271901#M49353</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-05-25T08:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Header and footer with row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-footer-with-row-count/m-p/2271902#M49354</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Since you need to get the current date before fetching the 1st record, you can use tjava and store current date in the required format in globalmap and then onsubjobok, the flow to read data from excel and loading to pipe delimited file will run and then again on subjobok, use tfixedflowinput which will have schema with 2 columns; in 1st column you will retrive the value from globalmap date variable and in 2nd column you will use nbline variable of input excel component and store the value in 2nd column of fixedfowinput.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Don't forget to give Kudos if you find the reply useful.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;BhavikaW&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;BhavikaW&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 08:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-footer-with-row-count/m-p/2271902#M49354</guid>
      <dc:creator>BhavikaW</dc:creator>
      <dc:date>2020-05-25T08:56:40Z</dc:date>
    </item>
  </channel>
</rss>

