<?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 Returning multiple rows from subjob in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Returning-multiple-rows-from-subjob/m-p/2221867#M15696</link>
    <description>Folks, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I would think this would be basic/simple but I cannot get it to work. I am trying to logically break up my workflow into a series of subjobs that can be reused easily. My overall workflow is to retrieve 2 files (each one from a different MQ) then parse each file as fixed width delimited and then finally join the two files together into one result dataset based on a key common to the content of both files. 
&lt;BR /&gt;I have broken out the parsing of a file to a child job - in there it contains tFileInputPositional - if I use a tLogRow component within the subjob I correctly see each row being output to the logs. However, if I pass the tFileInputPositional directly to a tBufferOutput for return to the parent job, nothing ever gets returned - I.e. back in the parent if I put a tBufferOutput from the output of the subjob, I get no rows back. 
&lt;BR /&gt;Is tBufferOutput designed to handle multple rows? If so, can someone give me an example of this at work. If I am using the wrong component, what component should I use?</description>
    <pubDate>Mon, 28 Sep 2015 19:30:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-28T19:30:16Z</dc:date>
    <item>
      <title>Returning multiple rows from subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Returning-multiple-rows-from-subjob/m-p/2221867#M15696</link>
      <description>Folks, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I would think this would be basic/simple but I cannot get it to work. I am trying to logically break up my workflow into a series of subjobs that can be reused easily. My overall workflow is to retrieve 2 files (each one from a different MQ) then parse each file as fixed width delimited and then finally join the two files together into one result dataset based on a key common to the content of both files. 
&lt;BR /&gt;I have broken out the parsing of a file to a child job - in there it contains tFileInputPositional - if I use a tLogRow component within the subjob I correctly see each row being output to the logs. However, if I pass the tFileInputPositional directly to a tBufferOutput for return to the parent job, nothing ever gets returned - I.e. back in the parent if I put a tBufferOutput from the output of the subjob, I get no rows back. 
&lt;BR /&gt;Is tBufferOutput designed to handle multple rows? If so, can someone give me an example of this at work. If I am using the wrong component, what component should I use?</description>
      <pubDate>Mon, 28 Sep 2015 19:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Returning-multiple-rows-from-subjob/m-p/2221867#M15696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-28T19:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Returning multiple rows from subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Returning-multiple-rows-from-subjob/m-p/2221868#M15697</link>
      <description>Yes, tBufferOutput is used to returns data back to parent job, you need to define the same schema as tBufferOutput's schema on tRunJob which is calling the child job. &amp;nbsp;eg: 
&lt;BR /&gt;child job 
&lt;BR /&gt;tFileInputPositional--tBufferOutput 
&lt;BR /&gt;parent job; 
&lt;BR /&gt;tRunJob--main--tLogRow 
&lt;BR /&gt;In this example, you will see the result are printed on the console.&amp;nbsp; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 29 Sep 2015 01:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Returning-multiple-rows-from-subjob/m-p/2221868#M15697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T01:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Returning multiple rows from subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Returning-multiple-rows-from-subjob/m-p/2221869#M15698</link>
      <description>Shong, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Thanks for replying and that IS how I have it set up. However, I've solved my pesky problem: Under 'advanced settings' for the tRunJob that represents the child job in the parent, I had to ensure 'propagate the child result to the output schema' for the results to return. You'd think that *duh* I would have known this but the thing is, there are several times I have used sub-jobs (such as processing data off MQ, etc.) and I have NEVER had to check this before to get my data back to the parent. Which makes this a confusing inconsistency for me if anyone is able to explain? 
&lt;BR /&gt;thanks, 
&lt;BR /&gt;D.</description>
      <pubDate>Wed, 30 Sep 2015 14:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Returning-multiple-rows-from-subjob/m-p/2221869#M15698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-30T14:44:51Z</dc:date>
    </item>
  </channel>
</rss>

