<?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: One output record from multiple input records - What's the best way? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226839#M18624</link>
    <description>If you have an variable structure you could:
&lt;BR /&gt;a) use technical attribute names (like row1 to rowN) and later, after processing, use correct names.
&lt;BR /&gt;b) If your file is line based but with different structure on each line, you could read your file line by line and process in a tJavaRow for example. 
&lt;BR /&gt;But on the end I think it would be possible to use the previous mentioned use case to create correct rows. 
&lt;BR /&gt;One simple approach:
&lt;BR /&gt;1) read file line by line (tFileInputFullRow) or for example with tFileInputDelimited (with a maximum number of rows)
&lt;BR /&gt;2) in your tJavaRow use your correct attributes and one additional (lineCompleted) for example)
&lt;BR /&gt;3) after processing a full row set the flag lineCompleted and filter out all not completed rows (tRowFilter)
&lt;BR /&gt;The limitation of this is that you could only create one row as output for one input row.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
    <pubDate>Tue, 20 Jan 2009 06:22:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-01-20T06:22:31Z</dc:date>
    <item>
      <title>One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226834#M18619</link>
      <description>Hi, 
&lt;BR /&gt;I have a really tricky issue. 
&lt;BR /&gt;I have an delimited input file where one output records? contents can be spread over several input records. Input records are related so that you know they belong together. 
&lt;BR /&gt;No field will have data across the span on the multiple input records (i.e field 10 could exist on input record 1,2, or 3, but only once within those lines. ( either 1 or 2 or 3) 
&lt;BR /&gt;Before this was handled using a program and it was able to use iterative reading and array-indexing to perform the formatting of the output record. 
&lt;BR /&gt;You always know when to start a new output record. 
&lt;BR /&gt;How can I achieve the multiple input/array indexing/ one output record functionality within Talend? 
&lt;BR /&gt;I have been racking my brains but cannot think of a way.</description>
      <pubDate>Sat, 16 Nov 2024 14:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226834#M18619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226835#M18620</link>
      <description>Hi Volker, 
&lt;BR /&gt;That case will not work for me as I do not have the column names with the file like the example. It's a pure comma delimted input but I know the max number of columns. I just a matter of 'compressing' several related input lines to one output line. 
&lt;BR /&gt;Thanks for looking into it - If you have any more thought I would be happy to hear them.</description>
      <pubDate>Thu, 15 Jan 2009 23:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226835#M18620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-15T23:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226836#M18621</link>
      <description>would loading the file into a database, and then selecting out using a GROUP BY work for you?&lt;BR /&gt;You can achieve the same behavior with a tAggregateRow</description>
      <pubDate>Fri, 16 Jan 2009 00:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226836#M18621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-16T00:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226837#M18622</link>
      <description>Hi,&lt;BR /&gt;could you please give us a short example (input and output). With this it would easier to find a good solution.&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Mon, 19 Jan 2009 21:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226837#M18622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-19T21:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226838#M18623</link>
      <description>Hi,&lt;BR /&gt;Here's an example :-&lt;BR /&gt;Record1 - Field1, field2,,,,,field6&lt;BR /&gt;Record2 - ,,field3,,,,&lt;BR /&gt;Record3 - ,,,field4,field5,&lt;BR /&gt;I always know an occurence of the start of a 'new' record. Records 1,2,3 have different fields that need to processed to form one output record (field 1-6).&lt;BR /&gt;There are actually 300 + fields that make up the record but  the above is representative.&lt;BR /&gt;Hope this helps clarify my requiremements.</description>
      <pubDate>Tue, 20 Jan 2009 00:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226838#M18623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-20T00:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226839#M18624</link>
      <description>If you have an variable structure you could:
&lt;BR /&gt;a) use technical attribute names (like row1 to rowN) and later, after processing, use correct names.
&lt;BR /&gt;b) If your file is line based but with different structure on each line, you could read your file line by line and process in a tJavaRow for example. 
&lt;BR /&gt;But on the end I think it would be possible to use the previous mentioned use case to create correct rows. 
&lt;BR /&gt;One simple approach:
&lt;BR /&gt;1) read file line by line (tFileInputFullRow) or for example with tFileInputDelimited (with a maximum number of rows)
&lt;BR /&gt;2) in your tJavaRow use your correct attributes and one additional (lineCompleted) for example)
&lt;BR /&gt;3) after processing a full row set the flag lineCompleted and filter out all not completed rows (tRowFilter)
&lt;BR /&gt;The limitation of this is that you could only create one row as output for one input row.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 20 Jan 2009 06:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226839#M18624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-20T06:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226840#M18625</link>
      <description>Volker,&lt;BR /&gt;I don't understand how it works but it does. Thanks for all you help.</description>
      <pubDate>Thu, 22 Jan 2009 23:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226840#M18625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-22T23:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226841#M18626</link>
      <description>If you have any question, just ask (even if it works)... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 23 Jan 2009 22:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226841#M18626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-23T22:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226842#M18627</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;If you have an variable structure you could:&lt;BR /&gt; .........&lt;BR /&gt;The limitation of this is that you could only create one row as output for one input row.&lt;BR /&gt;Bye&lt;BR /&gt;Volker&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi Volker,
&lt;BR /&gt;If one input row can create 1 or more output, what is the work around?
&lt;BR /&gt;Here is the description.
&lt;BR /&gt;I have ID, Name1, Name2, Name3 in csv (input).
&lt;BR /&gt;I want map this to DB (output) with ID, Name as the field without primary key.
&lt;BR /&gt;So if csv like 01, John, Ann, Mark.
&lt;BR /&gt;The output I expect in DB is like 
&lt;BR /&gt;ID Name
&lt;BR /&gt;== ====
&lt;BR /&gt;01 John
&lt;BR /&gt;01 Ann
&lt;BR /&gt;01 Mark</description>
      <pubDate>Mon, 02 Mar 2009 07:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226842#M18627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-02T07:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: One output record from multiple input records - What's the best way?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226843#M18628</link>
      <description>Hi,&lt;BR /&gt;I see two possible solutions. The first one is to concatenate your Names into one string and decompose it with tNormalize. &lt;BR /&gt;The second one is to take a look into Talend Exchange. I think there is a component to transpose your data. &lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Mon, 02 Mar 2009 22:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-output-record-from-multiple-input-records-What-s-the-best/m-p/2226843#M18628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-02T22:00:11Z</dc:date>
    </item>
  </channel>
</rss>

