<?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: Processing different record types in one file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326726#M96182</link>
    <description>An alternative approach would be to have the tMap emit only a single output - you would just need to write code to fill in the other columns that looks at the record type and uses the correct source data.</description>
    <pubDate>Wed, 03 Feb 2010 15:04:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-03T15:04:14Z</dc:date>
    <item>
      <title>Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326721#M96177</link>
      <description>Hi folks, 
&lt;BR /&gt;I'm fairly new to TOS and am putting together my first 'real' job. I know what I'm trying to achieve but I'm not sure if I'm going about it the right way. 
&lt;BR /&gt;I have an input file which contains multiple record types. Different record type have different numbers of columns. 
&lt;BR /&gt;What I'm trying to do is to write out a single file with the columns of each record type moved such that each column in the output file has a single data type. 
&lt;BR /&gt;For example: 
&lt;BR /&gt;- input file may contain the following 3 records 
&lt;BR /&gt;RT1,20100101,fred 
&lt;BR /&gt;RT2,12345,david 
&lt;BR /&gt;RT3,abc,1234 
&lt;BR /&gt;My output file needs to be in the following format: 
&lt;BR /&gt;- column#1 should be string (is my record type) 
&lt;BR /&gt;- column#2 should be a date 
&lt;BR /&gt;- column#3 should be a string 
&lt;BR /&gt;- column#4 should be numeric. 
&lt;BR /&gt;Using my sample data from above my output file will be as follows: 
&lt;BR /&gt;RT1,20100101,fred 
&lt;BR /&gt;RT2,,david,12345 
&lt;BR /&gt;RT3,,abc,1234 
&lt;BR /&gt;I am using tMap to split the input file based on the record type (RT1, RT2 etc) and for testing have written those to tLogRow so I know I'm doing the correct processing. 
&lt;BR /&gt;How do I merge them back into one file ? I realise that I could write them all out to different files and then iterate through a filelist, but that seems like overkill to me. I'm typically processing less than 10 rows on each execution of the job. 
&lt;BR /&gt;I tried to use tUnite directly from the output of tMap but couldn't get it to accept multiple inputs. Seems strange but I could not get it to work. The first output from tMap dropped onto the tUnite component ok, but subsequent ones would not connect to it. The icon being shown was the "not allowed" one. 
&lt;BR /&gt;I then considered using a tBufferOutput from each row type of tMap, this is ok, but again trying to use tUnite to mwerge them back together I'm hitting the same problem. 
&lt;BR /&gt;What's the best way to achieve this ? All ideas and suggestions gratefully received. 
&lt;BR /&gt;Cheers, 
&lt;BR /&gt;Dave</description>
      <pubDate>Sat, 16 Nov 2024 13:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326721#M96177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326722#M96178</link>
      <description>Unfortunately, you cannot unite an already separated stream. However, you can output your split flows into files, and then input them in the same job to join them together.</description>
      <pubDate>Tue, 02 Feb 2010 19:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326722#M96178</guid>
      <dc:creator>jkrfs</dc:creator>
      <dc:date>2010-02-02T19:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326723#M96179</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Unfortunately, you cannot unite an already separated stream. However, you can output your split flows into files, and then input them in the same job to join them together.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I've just gotta ask, then - what is the tUnite object intended to do? The tooltip says it "Merges inputs into the same output".&lt;BR /&gt;Do your inputs all have the same schema?</description>
      <pubDate>Tue, 02 Feb 2010 20:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326723#M96179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-02T20:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326724#M96180</link>
      <description>Let me rephrase, you can't unite a stream/flow that was separated INSIDE the talend job. So, if you have two sources coming in, in that situation you can use tUnite. It's a bit of a pain, but the work around works fine. I had to do it for a reconciliation project and it worked flawlessly.</description>
      <pubDate>Tue, 02 Feb 2010 20:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326724#M96180</guid>
      <dc:creator>jkrfs</dc:creator>
      <dc:date>2010-02-02T20:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326725#M96181</link>
      <description>Hi Andrew &amp;amp; jkrfs,
&lt;BR /&gt;Thanks for the info and thoughts.
&lt;BR /&gt;Andrew, yes my schemas are all the same.
&lt;BR /&gt;At least I now know that I'm not doing anything wrong / stupid. The tUnite component won't do what I'm trying to do in the way that I'm trying to do it. I don't understand why that is, but "that's what is". (time for an enhancement request).
&lt;BR /&gt;I'll either write back to disk or try another way to approach this.
&lt;BR /&gt;Cheers,
&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 03 Feb 2010 09:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326725#M96181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-03T09:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326726#M96182</link>
      <description>An alternative approach would be to have the tMap emit only a single output - you would just need to write code to fill in the other columns that looks at the record type and uses the correct source data.</description>
      <pubDate>Wed, 03 Feb 2010 15:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326726#M96182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-03T15:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326727#M96183</link>
      <description>Hi Andrew,&lt;BR /&gt;On the face of it that doesn't seem to make sense.&lt;BR /&gt;Why use tMap if you're then going to write the code to handle the different record types ? Certainly in this instance the main reason for choosing tMap was to allow it to recognise the different record types and process them accordingly.&lt;BR /&gt;Am I missing something here ? (very possible !)&lt;BR /&gt;Cheers,&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 03 Feb 2010 15:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326727#M96183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-03T15:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326728#M96184</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Why use tMap if you're then going to write the code to handle the different record types ? Certainly in this instance the main reason for choosing tMap was to allow it to recognise the different record types and process them accordingly.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;It all seems to come down to whether the record type is an indicator of the format of the input row and you want a single output (what I understood to be the case) or if you want to split out the different record types for various processing efforts. If you want a single output with the parsed data, using a tMap with a single output would seem the best way to handle it. Otherwise the current setup would seem to work correctly.</description>
      <pubDate>Wed, 03 Feb 2010 20:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326728#M96184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-03T20:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326729#M96185</link>
      <description>Hi Andrew,
&lt;BR /&gt;I think we're now getting to the nub of the problem.
&lt;BR /&gt;I want a single output.
&lt;BR /&gt;What I need to do is something like:
&lt;BR /&gt;- for record type#1, I need to move input-column-1 to output-column-1
&lt;BR /&gt;- for record type#2, I need to move input-column-1 to output-column-2
&lt;BR /&gt;Both record types #1 and #2 should be written to the same output.
&lt;BR /&gt;When using the tMap i think that the 'move' has to be done by using different output records, which cannot be wriiten to the same output component.
&lt;BR /&gt;Am I wrong ? 
&lt;BR /&gt;Is there another way of doing this using tMap ?
&lt;BR /&gt;Cheers,
&lt;BR /&gt;Dave</description>
      <pubDate>Thu, 04 Feb 2010 09:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326729#M96185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-04T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Processing different record types in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326730#M96186</link>
      <description>hi, i m new to JasperETL. me to facing the similar problem
&lt;BR /&gt;I need to read file EG:
&lt;BR /&gt;@@@08123456BUILD 03/11/06POSITION
&lt;BR /&gt;"ABC ","12345678","C","L"," 50.0000"
&lt;BR /&gt;"CASH07 ","78901234","C","L"," 33655.3900"
&lt;BR /&gt;"912827Z69","67890123","M","L"," 25000.0000"
&lt;BR /&gt;@@@08123456BUILD 03/11/06SECDESC
&lt;BR /&gt;"ABC ","cs","ALPHA BETA CO INC "," "," "," "," 48.5000","031106"," 48.5000"
&lt;BR /&gt;"ZZZ ","cs","TESTACCT INC "," "," "," "," 40.5000","031106"," 40.5000"
&lt;BR /&gt;"912827WQ1","gm","GNMA PL #422452 ","DUE 11/15/15 ","FACTOR = 0.055141710000","AMRT. AMT = 27,570.86 "," 113.3740","031106"," 0.0625"
&lt;BR /&gt;@@@08123456BUILD 03/11/06CUSTOMER
&lt;BR /&gt;"27471111","AGNES D BE MINEERA ","12 SPRINGLOSS RD NE "," ","ATLANTA GA 30306"," ","404-977-1111","404-873-1111","030383","AN","000-32-8697","SGS","4L","IR"," "," "
&lt;BR /&gt;"33840000","T M FORESTA IIV ","4256 S DAHBIM ","ROUTE 8 BOX 645 ","KESWICN VA 22947"," ","804-979-1111","804-979-1111","062891","AN","200-00-1004","AMM","4L","4L"," "," "
&lt;BR /&gt;"37930000","REBENA J MERDON ","2000 LITTLE BRAIKE LANE "," ","DUNWOODY GA 30338"," ","404-396-1111","404-111-1111","021683","AN","000-50-4754","ZMM","4L","IR"," "," "
&lt;BR /&gt;
&lt;BR /&gt;this page is having 3 informations i.e, position, security and customer. under each section umber of rows are dynamic here there is only 3 rows, but it may be 4 or 5 or any thng. i need to read customer section - both its header and detail section.plz help me</description>
      <pubDate>Wed, 07 Apr 2010 15:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Processing-different-record-types-in-one-file/m-p/2326730#M96186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-07T15:25:55Z</dc:date>
    </item>
  </channel>
</rss>

