<?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: Header and trailer validation of csv file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208753#M7861</link>
    <description>Check out the screenshots below 
&lt;BR /&gt;Edit: Instead of tLogRow, place a tFileOutputDelimited component. 
&lt;BR /&gt;If the footer has more than 1 row, then in the tJava row (say for example 3 rows), you can specify 
&lt;BR /&gt; 
&lt;FONT color="blue"&gt;String footer_rows = ((Integer)globalMap.get("tFileRowCount_1_COUNT")-2)+".."+(Integer)globalMap.get("tFileRowCount_1_COUNT");&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDHs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155800i9794C9D725E99091/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDHs.png" alt="0683p000009MDHs.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDN9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133121i25EC9606A97D2EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDN9.png" alt="0683p000009MDN9.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDNE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156088i8F6A83367E8D9990/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDNE.png" alt="0683p000009MDNE.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDKk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131298i76F7C6A21A99AA2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDKk.png" alt="0683p000009MDKk.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD4E.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135193i40CF6E68696EE54A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD4E.png" alt="0683p000009MD4E.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDNJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139556i28DEC4B7DF41F4EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDNJ.png" alt="0683p000009MDNJ.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDNO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153449i97C8C5CC78DC0A8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDNO.png" alt="0683p000009MDNO.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Mon, 24 Mar 2014 11:11:55 GMT</pubDate>
    <dc:creator>bkar81</dc:creator>
    <dc:date>2014-03-24T11:11:55Z</dc:date>
    <item>
      <title>Header and trailer validation of csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208750#M7858</link>
      <description>Hi,&lt;BR /&gt; I have .csv file having multiple colmns,i need to do hader and trailer validation on csv file.&lt;BR /&gt;first row of csv file consisting name  of column ,which should go in header file.and&lt;BR /&gt;last row of csv file consist total count of rows(eg.100) in file ,the count shoud goes in trailer file,&lt;BR /&gt;so how to do that header and trailer validation.&lt;BR /&gt;layout of csv file&lt;BR /&gt;col1    |   col2 | col 3   | ...|.... }                   :this row goes to in header.csv file&lt;BR /&gt;data1  | data2 | data3 |..........&lt;BR /&gt;.&lt;BR /&gt;.                                                                 :this rows(total 90 rows) goes to in maindata.csv file&lt;BR /&gt;.                             &lt;BR /&gt;90                                                               :this count should goes to trailer.csv file&lt;BR /&gt;&lt;BR /&gt;So will you please suggest that ,how to achive this?</description>
      <pubDate>Sat, 16 Nov 2024 11:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208750#M7858</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T11:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Header and trailer validation of csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208751#M7859</link>
      <description>Hi, 
&lt;BR /&gt;For your requirement, you can control the num of "header" and "footer" on tFileInputDelimited. 
&lt;BR /&gt;To make it clear, I have designed a demo job. 
&lt;BR /&gt;The input file: 
&lt;BR /&gt;id,name,sex 
&lt;BR /&gt;1,shong,m 
&lt;BR /&gt;2'sabrina,f 
&lt;BR /&gt;3,Elise,f 
&lt;BR /&gt;The expected result is: 
&lt;BR /&gt;outfile 1 
&lt;BR /&gt;1,shong,m 
&lt;BR /&gt;outfile2 
&lt;BR /&gt;3,Elise,f 
&lt;BR /&gt;Please see my screenshots for details 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDMz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156834iAB1A0D4EFDB05423/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDMz.png" alt="0683p000009MDMz.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDN4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146918iF7E51CD5253BF1DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDN4.png" alt="0683p000009MDN4.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 24 Mar 2014 10:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208751#M7859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-24T10:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Header and trailer validation of csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208752#M7860</link>
      <description>Hi,
&lt;BR /&gt;Many thanks for your quick reply. Actually my requirement is a little bit different. 
&lt;BR /&gt;The file will be something like - 
&lt;BR /&gt;Name Age Mobile This is the Header in my case. Meaning we do not have any value for Header.
&lt;BR /&gt;abc 22 97453 
&lt;BR /&gt;hkh 33 86541
&lt;BR /&gt;hfk 16 90686
&lt;BR /&gt;lmn 19 56312
&lt;BR /&gt;4 The data 4 is the count of no of recrods we have which is just an example and may vary 
&lt;BR /&gt; And so this is the trailer.
&lt;BR /&gt;
&lt;BR /&gt;We want to validate that count mentioned in trailer ie 4 in our example case and the actual num of records present in the file ie 4 in our case matches or not. 
&lt;BR /&gt;So it is something like to first take the last record of the file into 1 file and store the value. Then do a count of the remaining records to get a count of 4 and then do a match. 
&lt;BR /&gt;Please let me know if you got it.
&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 24 Mar 2014 10:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208752#M7860</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-03-24T10:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Header and trailer validation of csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208753#M7861</link>
      <description>Check out the screenshots below 
&lt;BR /&gt;Edit: Instead of tLogRow, place a tFileOutputDelimited component. 
&lt;BR /&gt;If the footer has more than 1 row, then in the tJava row (say for example 3 rows), you can specify 
&lt;BR /&gt; 
&lt;FONT color="blue"&gt;String footer_rows = ((Integer)globalMap.get("tFileRowCount_1_COUNT")-2)+".."+(Integer)globalMap.get("tFileRowCount_1_COUNT");&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDHs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155800i9794C9D725E99091/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDHs.png" alt="0683p000009MDHs.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDN9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133121i25EC9606A97D2EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDN9.png" alt="0683p000009MDN9.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDNE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156088i8F6A83367E8D9990/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDNE.png" alt="0683p000009MDNE.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDKk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131298i76F7C6A21A99AA2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDKk.png" alt="0683p000009MDKk.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD4E.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135193i40CF6E68696EE54A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD4E.png" alt="0683p000009MD4E.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDNJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139556i28DEC4B7DF41F4EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDNJ.png" alt="0683p000009MDNJ.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDNO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153449i97C8C5CC78DC0A8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDNO.png" alt="0683p000009MDNO.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 24 Mar 2014 11:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208753#M7861</guid>
      <dc:creator>bkar81</dc:creator>
      <dc:date>2014-03-24T11:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Header and trailer validation of csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208754#M7862</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am generating a .csv file using tFileOutputDelimited component.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to append a footer while generating the file. (In my generated csv file i need extra row at the end).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 21:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208754#M7862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T21:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Header and trailer validation of csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208755#M7863</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.qlik.com/s/profile/0053p000007LPEXAA4"&gt;@MNK_2019&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please elaborate your case with an example with input and expected output values?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 04:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Header-and-trailer-validation-of-csv-file/m-p/2208755#M7863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-30T04:14:16Z</dc:date>
    </item>
  </channel>
</rss>

