<?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: Split tOracleRow output to multiple output files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Split-tOracleRow-output-to-multiple-output-files/m-p/2254856#M37741</link>
    <description>&lt;P&gt;Hi TRF,&lt;/P&gt; 
&lt;P&gt;thank you very much for your response, however I must admit that I have absolutely no experience with these two controls. Please, could you be a bit more specific where exactly I am supposed to place them and how to set them up properly?&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Sat, 17 Nov 2018 00:10:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-17T00:10:26Z</dc:date>
    <item>
      <title>Split tOracleRow output to multiple output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-tOracleRow-output-to-multiple-output-files/m-p/2254854#M37739</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;my workflow is as follows. I have an input text file with just one column (rows contain some number as customer IDs). For each ID I need to execute a prepared statement and output of this statement should be saved into a separate file named customer_id_some_fixed_text.txt.&lt;/P&gt; 
&lt;P&gt;My "train" is tFileInputDelimited =&amp;gt; tJavaRow =&amp;gt; tOracleRow =&amp;gt; tParseRecordset =&amp;gt; tFileOutput[whatever] (output format is not that important).&lt;/P&gt; 
&lt;P&gt;In the tJavaRow (besides the generated code) I'm just setting a context variable&lt;/P&gt; 
&lt;P&gt;context.vCurCustId = input_row.CUST_ID;&lt;/P&gt; 
&lt;P&gt;tOracleRow is executing a simple statement like&lt;/P&gt; 
&lt;P&gt;"select * from my_customers where customer_id = ?"&lt;/P&gt; 
&lt;P&gt;parameters and everything else is set correctly and here I would like to create an output file named context.vCurCustId + "some_other_text.txt".&lt;/P&gt; 
&lt;P&gt;The problem is that the entire output (for all customer_ids) goes into one file and I have no idea what I'm missing.&lt;/P&gt; 
&lt;P&gt;Any suggestions would be highly appreciated.&lt;/P&gt; 
&lt;P&gt;Thanks a lot,&lt;/P&gt; 
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 14:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-tOracleRow-output-to-multiple-output-files/m-p/2254854#M37739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T14:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Split tOracleRow output to multiple output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-tOracleRow-output-to-multiple-output-files/m-p/2254855#M37740</link>
      <description>&lt;P&gt;You cannot change the output filename during the flow execution.&lt;/P&gt;
&lt;P&gt;So, you have to introduction a tFlowToIterate + a tIterateToFlow.&lt;/P&gt;
&lt;P&gt;As you'l have a new flow for each record, now you can change the filename.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-tOracleRow-output-to-multiple-output-files/m-p/2254855#M37740</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-11-16T15:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Split tOracleRow output to multiple output files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-tOracleRow-output-to-multiple-output-files/m-p/2254856#M37741</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt; 
&lt;P&gt;thank you very much for your response, however I must admit that I have absolutely no experience with these two controls. Please, could you be a bit more specific where exactly I am supposed to place them and how to set them up properly?&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 00:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-tOracleRow-output-to-multiple-output-files/m-p/2254856#M37741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-17T00:10:26Z</dc:date>
    </item>
  </channel>
</rss>

