<?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 How to shift a column header names into row values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370274#M133335</link>
    <description>Hi, 
&lt;BR /&gt;I have a scenario to be processed as below: 
&lt;BR /&gt;1. An Input "|"delimited file to be processed which is of the below mentioned schema (with sample data): 
&lt;BR /&gt;CARDID|CARDNAME|SLOTNAME|SHELFNAME|NODENAME|LOCATIONNAME|NODETYPE 
&lt;BR /&gt;661813|DD|Slot 4|Shelf 1|T-T080176 _C01_R01|T-T080176|SDH 
&lt;BR /&gt;661821|DD|Slot 4|Shelf 1|T-T080178_C01_R01|T-T080178|PDH 
&lt;BR /&gt;661878|UU|Slot 1|Shelf 1|T-T090002_C01_R01|T-T090002|SDH 
&lt;BR /&gt;661900|DU|Slot 3|Shelf 1|T-T050049_C01_R01|T-T050049|PDH 
&lt;BR /&gt;661914|UU|Slot 1|Shelf 1|T-T050065_C01_R01|T-T050065|MSC 
&lt;BR /&gt;3. The expected is to arrive at two output files where the first one is straight mapping as shown below(OUTPUT1): 
&lt;BR /&gt;CARDID|CARDNAME|SLOTNAME|SHELFNAME|LOCATIONNAME 
&lt;BR /&gt;661813|DD|Slot 4|Shelf 1|T-T080176 
&lt;BR /&gt;661821|DD|Slot 4|Shelf 1|T-T080178 
&lt;BR /&gt;661878|UU|Slot 1|Shelf 1|T-T090002 
&lt;BR /&gt;661900|DU|Slot 3|Shelf 1|T-T050049 
&lt;BR /&gt;661914|UU|Slot 1|Shelf 1|T-T050065 
&lt;BR /&gt; 
&lt;BR /&gt;The second file should be in the below mentioned format(OUTPUT2): 
&lt;BR /&gt;CARDID|UDA_NAME|UDA_VALUE 
&lt;BR /&gt;661813|NODENAME|T-T080176 _C01_R01 
&lt;BR /&gt;661821|NODENAME|T-T080178_C01_R01 
&lt;BR /&gt;661878|NODENAME|T-T090002_C01_R01 
&lt;BR /&gt;661900|NODENAME|T-T050049_C01_R01 
&lt;BR /&gt;661914|NODENAME|T-T050065_C01_R01 
&lt;BR /&gt;661813|NODETYPE|SDH 
&lt;BR /&gt;661821|NODETYPE|PDH 
&lt;BR /&gt;661878|NODETYPE|SDH 
&lt;BR /&gt;661900|NODETYPE|PDH 
&lt;BR /&gt;661914|NODETYPE|MSC 
&lt;BR /&gt;In the above output you can see that the Input Header columns became the row values. I understand that this shall be achieved through using multiple tFileInputDelimited and tmap components for each of the column headers and atlast merging all the files to form a single output. 
&lt;BR /&gt;The problem is there could be more number of columns which has to be processed in this fashion. So I am seeking help to achieve this in an easy manner. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Karthik</description>
    <pubDate>Tue, 20 Aug 2013 07:03:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-20T07:03:00Z</dc:date>
    <item>
      <title>How to shift a column header names into row values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370274#M133335</link>
      <description>Hi, 
&lt;BR /&gt;I have a scenario to be processed as below: 
&lt;BR /&gt;1. An Input "|"delimited file to be processed which is of the below mentioned schema (with sample data): 
&lt;BR /&gt;CARDID|CARDNAME|SLOTNAME|SHELFNAME|NODENAME|LOCATIONNAME|NODETYPE 
&lt;BR /&gt;661813|DD|Slot 4|Shelf 1|T-T080176 _C01_R01|T-T080176|SDH 
&lt;BR /&gt;661821|DD|Slot 4|Shelf 1|T-T080178_C01_R01|T-T080178|PDH 
&lt;BR /&gt;661878|UU|Slot 1|Shelf 1|T-T090002_C01_R01|T-T090002|SDH 
&lt;BR /&gt;661900|DU|Slot 3|Shelf 1|T-T050049_C01_R01|T-T050049|PDH 
&lt;BR /&gt;661914|UU|Slot 1|Shelf 1|T-T050065_C01_R01|T-T050065|MSC 
&lt;BR /&gt;3. The expected is to arrive at two output files where the first one is straight mapping as shown below(OUTPUT1): 
&lt;BR /&gt;CARDID|CARDNAME|SLOTNAME|SHELFNAME|LOCATIONNAME 
&lt;BR /&gt;661813|DD|Slot 4|Shelf 1|T-T080176 
&lt;BR /&gt;661821|DD|Slot 4|Shelf 1|T-T080178 
&lt;BR /&gt;661878|UU|Slot 1|Shelf 1|T-T090002 
&lt;BR /&gt;661900|DU|Slot 3|Shelf 1|T-T050049 
&lt;BR /&gt;661914|UU|Slot 1|Shelf 1|T-T050065 
&lt;BR /&gt; 
&lt;BR /&gt;The second file should be in the below mentioned format(OUTPUT2): 
&lt;BR /&gt;CARDID|UDA_NAME|UDA_VALUE 
&lt;BR /&gt;661813|NODENAME|T-T080176 _C01_R01 
&lt;BR /&gt;661821|NODENAME|T-T080178_C01_R01 
&lt;BR /&gt;661878|NODENAME|T-T090002_C01_R01 
&lt;BR /&gt;661900|NODENAME|T-T050049_C01_R01 
&lt;BR /&gt;661914|NODENAME|T-T050065_C01_R01 
&lt;BR /&gt;661813|NODETYPE|SDH 
&lt;BR /&gt;661821|NODETYPE|PDH 
&lt;BR /&gt;661878|NODETYPE|SDH 
&lt;BR /&gt;661900|NODETYPE|PDH 
&lt;BR /&gt;661914|NODETYPE|MSC 
&lt;BR /&gt;In the above output you can see that the Input Header columns became the row values. I understand that this shall be achieved through using multiple tFileInputDelimited and tmap components for each of the column headers and atlast merging all the files to form a single output. 
&lt;BR /&gt;The problem is there could be more number of columns which has to be processed in this fashion. So I am seeking help to achieve this in an easy manner. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Karthik</description>
      <pubDate>Tue, 20 Aug 2013 07:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370274#M133335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-20T07:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to shift a column header names into row values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370275#M133336</link>
      <description>Hi, 
&lt;BR /&gt;The component 
&lt;A href="https://help.talend.com/search/all?query=tMap&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tMap&lt;/A&gt; can achieve your goal. 
&lt;BR /&gt;The workflow should be: tfileinputdelimited--&amp;gt;tMap--&amp;gt;tfileoutputdelimited(output1) 
&lt;BR /&gt; --&amp;gt;tfileoutoutdelimited2(output2) 
&lt;BR /&gt; --&amp;gt;tfileoutoutdelimited3(output2) 
&lt;BR /&gt;Please see my screenshots for detail. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAtx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149522i1C940692123AD422/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAtx.png" alt="0683p000009MAtx.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAvn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142952i500C07D92BAB5C9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAvn.png" alt="0683p000009MAvn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370275#M133336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-20T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to shift a column header names into row values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370276#M133337</link>
      <description>Hi Sabrina,&lt;BR /&gt;Thanks for providing the solution. I tried the same and got three output files in total, &lt;BR /&gt;tfileoutputdelimited(output1)&lt;BR /&gt;tfileoutoutdelimited2(output2)&lt;BR /&gt;tfileoutoutdelimited3(output3)&lt;BR /&gt;whereas I am expecting only two files &lt;BR /&gt;Is there any simple way to merge both the Output 2 &amp;amp; 3 files.&lt;BR /&gt;Regards,&lt;BR /&gt;Karthik</description>
      <pubDate>Tue, 20 Aug 2013 10:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370276#M133337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-20T10:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to shift a column header names into row values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370277#M133338</link>
      <description>Hi Sabrina,&lt;BR /&gt;I got the solution. I used tUnite to merge both the Output2 &amp;amp;3 files to make it as a single file.&lt;BR /&gt;Thanks for your support.&lt;BR /&gt;Regards,&lt;BR /&gt;Karthik</description>
      <pubDate>Tue, 20 Aug 2013 11:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370277#M133338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-20T11:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to shift a column header names into row values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370278#M133339</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;tfileoutputdelimited(output1)&lt;BR /&gt;tfileoutoutdelimited2(output2)&lt;BR /&gt;tfileoutoutdelimited3(output3)&lt;BR /&gt;whereas I am expecting only two files&lt;BR /&gt;Is there any simple way to merge both the Output 2 &amp;amp; 3 files.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Actually, you should use a same output file path when setting tfileoutoutdelimited2 and tfileoutoutdelimited3. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;The workflow should be: tfileinputdelimited--&amp;gt;tMap--&amp;gt;tfileoutputdelimited(output1)&lt;BR /&gt; --&amp;gt;tfileoutoutdelimited2(output2)&lt;BR /&gt; --&amp;gt;tfileoutoutdelimited3(output2)&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Please check out the option "Append" both in tFileoutputdelimited2 and tFileoutoutdelimited3 component. 
&lt;BR /&gt;See my screenshots 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAvs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155127i995C3626E0006EDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAvs.png" alt="0683p000009MAvs.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAvx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140597iA87F35AC83616AA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAvx.png" alt="0683p000009MAvx.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 20 Aug 2013 11:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370278#M133339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-20T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to shift a column header names into row values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370279#M133340</link>
      <description>Thanks alot.. Its working fine.&lt;BR /&gt;Regards,&lt;BR /&gt;Karthik</description>
      <pubDate>Tue, 20 Aug 2013 12:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370279#M133340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-20T12:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to shift a column header names into row values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370280#M133341</link>
      <description>Hi,  &lt;BR /&gt;It is welcome to post your issue on forum.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 21 Aug 2013 06:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-shift-a-column-header-names-into-row-values/m-p/2370280#M133341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-21T06:24:21Z</dc:date>
    </item>
  </channel>
</rss>

