<?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: split header and data in to different output files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353241#M119483</link>
    <description>Hi, you can achieve it using dynamic feature of talend, which is only available in enterprise version. Please refer the below link-</description>
    <pubDate>Wed, 23 Mar 2016 06:14:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-23T06:14:23Z</dc:date>
    <item>
      <title>split header and data in to different output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353239#M119481</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am new to talend and trying to get my hands as dirty as possible.&lt;BR /&gt;Could someone please help me with the below need:&lt;BR /&gt;I've a employee.DAT file with members details as shown below&lt;BR /&gt;---- this line is not present in the DAT file ----&lt;BR /&gt;employeeID|firstName|lastName|birthDate|address1|city|state&lt;BR /&gt;Ndeggk|Jimmy|Hoover|16-02-2007|North Erringer Road|Albany|Alabama&lt;BR /&gt;UNTeEQ|Bill|Johnson|22-12-2007|San Marcos|Baton Rouge|Vermont&lt;BR /&gt;eh1nB8|Warren|Truman|29-12-2007|Santa Rosa North|Boise|Tennessee&lt;BR /&gt;---- this line is not present in the DAT file ----&lt;BR /&gt;&lt;BR /&gt;Now, the requirement is to split the ..\inputFile\employee.DAT into two files&lt;BR /&gt;&lt;BR /&gt;Step 1: save all employee records in the same format without header into a file say ..\outputFile\employee.DAT&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this step was simple and I got it right &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Step 2: save header info (employeeID|firstName|lastName|birthDate|address1|city|state) into ..\outputFile\employee.META&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(a) catch is that each header field need to be written as a row in the output file without delimiter "|"&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;headerField&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;employeeID &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;firstName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lastName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;birthDate &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;address1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;city &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;state &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (b) a new column must be added called fieldType and set to String by default for each row as shown below&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;headerField &amp;nbsp; &amp;nbsp; &amp;nbsp;fieldType&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;employeeID &amp;nbsp; &amp;nbsp; String&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;firstName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lastName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;birthDate &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;address1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;city &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;state &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String&lt;BR /&gt;&lt;BR /&gt;I accomplished step 2 (a) with tSplitRow as below&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In this case, I had to manually add the column mapping and it works as long as the header fields in the file are always same or fixed, which is NOT in my case. The copy of employee.DAT file that I receive today might have same or different fields from that any other day. but the format is same (each header field is separated by "|" delimiter)&lt;BR /&gt;&lt;BR /&gt;so basically I could succeed with entire step2 &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;appreciate any kind of help .. thanks for your time.&lt;BR /&gt;&lt;BR /&gt;* there is no restriction in how to accomplish this ... I mean it could be just by using talend components, or routines or tJava related components or any script&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;P.R&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353239#M119481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T19:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: split header and data in to different output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353240#M119482</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;so basically I could NOT succeed with entire step2&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 22 Mar 2016 20:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353240#M119482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T20:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: split header and data in to different output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353241#M119483</link>
      <description>Hi, you can achieve it using dynamic feature of talend, which is only available in enterprise version. Please refer the below link-</description>
      <pubDate>Wed, 23 Mar 2016 06:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353241#M119483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T06:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: split header and data in to different output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353242#M119484</link>
      <description>link&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCo8LCAS" target="_blank"&gt;thread&lt;/A&gt;</description>
      <pubDate>Wed, 23 Mar 2016 06:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353242#M119484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T06:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: split header and data in to different output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353243#M119485</link>
      <description>Thank you Shruti .. I'll go through the link and try to use it on Enterprise trail version.
&lt;BR /&gt;
&lt;BR /&gt;I was successful in Step 2 by using tTurnRow component, a custom component downloaded from Talend Exchange.
&lt;BR /&gt;Referred to the post:&amp;nbsp;</description>
      <pubDate>Wed, 23 Mar 2016 14:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353243#M119485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T14:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: split header and data in to different output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353244#M119486</link>
      <description>more details on how to use tTurnRow at the link</description>
      <pubDate>Wed, 23 Mar 2016 14:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353244#M119486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T14:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: split header and data in to different output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353245#M119487</link>
      <description>not sure why the link is not getting displayed.. 
&lt;BR /&gt; 
&lt;BR /&gt;incase it repeats again .. take a look at this related topic 
&lt;BR /&gt;https://community.talend.com/t5/Design-and-Development/resolved-tTurnRow-not-showing-on-pallet-in-talend-5-3-0/m-p/109840</description>
      <pubDate>Wed, 23 Mar 2016 14:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/split-header-and-data-in-to-different-output-files/m-p/2353245#M119487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T14:39:00Z</dc:date>
    </item>
  </channel>
</rss>

