<?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: How to loop through row and create outputfile? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425907#M140281</link>
    <description>&lt;P&gt;Each outputfile must have the same name like in the sql query result.&lt;/P&gt;
&lt;P&gt;deliv100.csv&lt;/P&gt;
&lt;P&gt;deliv200.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 12:55:03 GMT</pubDate>
    <dc:creator>pawe84</dc:creator>
    <dc:date>2024-03-01T12:55:03Z</dc:date>
    <item>
      <title>How to loop through row and create outputfile?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425843#M140279</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I need an outpufile for each delivery number.&lt;/P&gt;
&lt;P&gt;Example: At first I check for the current date if there are any deliveries.&lt;/P&gt;
&lt;P&gt;A sql query of my delivery master table shows the result:&lt;/P&gt;
&lt;P&gt;01/03/2024 | deliv100&lt;/P&gt;
&lt;P&gt;01/03/2024 | deliv200&lt;/P&gt;
&lt;P&gt;Now I have to get child information at first from deliv100 then create output file&lt;/P&gt;
&lt;P&gt;after that get deliv200 child information and create another new outputfile.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How I can create this loop query?&lt;/P&gt;
&lt;P&gt;Thanks in advance for any hints.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 11:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425843#M140279</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2024-03-01T11:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop through row and create outputfile?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425902#M140280</link>
      <description>&lt;P&gt;Is there any convention for the output file names that needs to be created for each delivery?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 12:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425902#M140280</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2024-03-01T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop through row and create outputfile?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425907#M140281</link>
      <description>&lt;P&gt;Each outputfile must have the same name like in the sql query result.&lt;/P&gt;
&lt;P&gt;deliv100.csv&lt;/P&gt;
&lt;P&gt;deliv200.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 12:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425907#M140281</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2024-03-01T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop through row and create outputfile?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425913#M140282</link>
      <description>&lt;P&gt;What data needs to be passed through each of these csv file?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 13:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425913#M140282</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2024-03-01T13:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop through row and create outputfile?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425922#M140283</link>
      <description>&lt;P&gt;Item information of the delivery.&lt;/P&gt;
&lt;P&gt;That means for the query on delivery child table&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--&amp;gt;&amp;nbsp; where delivery_no =&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;deliv100&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then next loop&lt;/P&gt;
&lt;P&gt;--&amp;gt;&amp;nbsp;where delivery_no =&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;deliv200&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 13:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2425922#M140283</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2024-03-01T13:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop through row and create outputfile?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2426348#M140287</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your master table returns the following results:&lt;/P&gt;
&lt;P&gt;date;deliv_column_name&lt;/P&gt;
&lt;P&gt;01/03/2024 | deliv100&lt;/P&gt;
&lt;P&gt;01/03/2024 | deliv200&lt;/P&gt;
&lt;P&gt;create the job as below:&lt;/P&gt;
&lt;P&gt;tMysqlnput_1--main(row1)--&amp;gt;tFlowToITerate--iterate--tFileTouch--oncomponentok--tMysqlInput_2--main--tFileOutputDelimited&lt;/P&gt;
&lt;P&gt;on tMysqlInput_1: read the&amp;nbsp;&lt;SPAN&gt;delivery number from master table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;tFileTouch: create an empty file for each&amp;nbsp;delivery number, set a dynamic output file name, eg:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"D:/file/"+(String)globalMap.get("row1.deliv_column_name")+".csv"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;tMysqlInput_2: read the&amp;nbsp;&lt;SPAN&gt;child information for the current delivery number, eg:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"select * from tableName where delivery_no='"+(String)globalMap.get("row1.deliv_column_name")+"'"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;tFileOutputDelimited: write the child information to the file created by&amp;nbsp;tFileTouch, set the file name as:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"D:/file/"+(String)globalMap.get("row1.deliv_column_name")+".csv"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please try and let me know if you have any questions/issues.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 05:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-through-row-and-create-outputfile/m-p/2426348#M140287</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-03-04T05:10:26Z</dc:date>
    </item>
  </channel>
</rss>

