<?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: [resolved] Comma delimited list to rows? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Comma-delimited-list-to-rows/m-p/2353752#M119879</link>
    <description>I was able to do this with a minimum of effort using a tNormalize component.</description>
    <pubDate>Mon, 05 Aug 2013 18:44:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-05T18:44:49Z</dc:date>
    <item>
      <title>[resolved] Comma delimited list to rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Comma-delimited-list-to-rows/m-p/2353751#M119878</link>
      <description>What I need to do is pretty straight-forward. Each input row has two columns: an identifier and a comma delimited list of values. The list of values has a variable number of values. For each value in that list I need to output a row along with the associated identifier. Example: 
&lt;BR /&gt;INPUT 
&lt;BR /&gt;S12345|2,3,4,5,6 
&lt;BR /&gt;S9865|9,8,7 
&lt;BR /&gt;OUTPUT: 
&lt;BR /&gt;S12345|2 
&lt;BR /&gt;S12345|3 
&lt;BR /&gt;S12345|4 
&lt;BR /&gt;S12345|5 
&lt;BR /&gt;S12345|6 
&lt;BR /&gt;S9865|9 
&lt;BR /&gt;S9865|8 
&lt;BR /&gt;S9865|7 
&lt;BR /&gt;I tried the code below in a tJavaRow but it seems that component can only output one row of output per row of input: 
&lt;BR /&gt; 
&lt;PRE&gt;String[] gradesArray = input_row.Grades.split(",");&lt;BR /&gt;for (int i = 0; i &amp;lt; gradesArray.length; i++) {&lt;BR /&gt;	output_row.SchoolID = input_row.SchoolIdentifier;&lt;BR /&gt;	output_row.Grade = gradesArray&lt;I&gt;;&lt;BR /&gt;}&lt;/I&gt;&lt;/PRE&gt; 
&lt;BR /&gt;Any ideas or suggestions? 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 05 Aug 2013 16:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Comma-delimited-list-to-rows/m-p/2353751#M119878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-05T16:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Comma delimited list to rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Comma-delimited-list-to-rows/m-p/2353752#M119879</link>
      <description>I was able to do this with a minimum of effort using a tNormalize component.</description>
      <pubDate>Mon, 05 Aug 2013 18:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Comma-delimited-list-to-rows/m-p/2353752#M119879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-05T18:44:49Z</dc:date>
    </item>
  </channel>
</rss>

