<?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 Create multiple Output files based on Input Data in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-multiple-Output-files-based-on-Input-Data/m-p/2367149#M130558</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to write multiple output files based on the input data. &lt;/P&gt;&lt;P&gt;The sample data in my input csv file looks something like below,&lt;/P&gt;&lt;P&gt;NEWYORK,1&lt;/P&gt;&lt;P&gt;NEWYORK,2&lt;/P&gt;&lt;P&gt;BERLIN,1&lt;/P&gt;&lt;P&gt;BERLIN,2&lt;/P&gt;&lt;P&gt;BERLIN,3&lt;/P&gt;&lt;P&gt;TOKYO,1&lt;/P&gt;&lt;P&gt;GERMANY,1&lt;/P&gt;&lt;P&gt;GERMANY,2&lt;/P&gt;&lt;P&gt;GERMANY,3&lt;/P&gt;&lt;P&gt;GERMANY,4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to create multiple output files like below,&lt;/P&gt;&lt;P&gt;NEWYORK.csv&lt;/P&gt;&lt;P&gt;BERLIN.csv&lt;/P&gt;&lt;P&gt;TOKYO.csv&lt;/P&gt;&lt;P&gt;GERMNANY.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above files should only contain the data of the respective countries.  Ex. NEWYORK file only contains, NEWYORK data.&lt;/P&gt;&lt;P&gt;The number of countries can keep changing.&lt;/P&gt;&lt;P&gt;Can you help to provide a solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:43:47 GMT</pubDate>
    <dc:creator>rajesh90</dc:creator>
    <dc:date>2024-11-15T23:43:47Z</dc:date>
    <item>
      <title>Create multiple Output files based on Input Data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-multiple-Output-files-based-on-Input-Data/m-p/2367149#M130558</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to write multiple output files based on the input data. &lt;/P&gt;&lt;P&gt;The sample data in my input csv file looks something like below,&lt;/P&gt;&lt;P&gt;NEWYORK,1&lt;/P&gt;&lt;P&gt;NEWYORK,2&lt;/P&gt;&lt;P&gt;BERLIN,1&lt;/P&gt;&lt;P&gt;BERLIN,2&lt;/P&gt;&lt;P&gt;BERLIN,3&lt;/P&gt;&lt;P&gt;TOKYO,1&lt;/P&gt;&lt;P&gt;GERMANY,1&lt;/P&gt;&lt;P&gt;GERMANY,2&lt;/P&gt;&lt;P&gt;GERMANY,3&lt;/P&gt;&lt;P&gt;GERMANY,4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to create multiple output files like below,&lt;/P&gt;&lt;P&gt;NEWYORK.csv&lt;/P&gt;&lt;P&gt;BERLIN.csv&lt;/P&gt;&lt;P&gt;TOKYO.csv&lt;/P&gt;&lt;P&gt;GERMNANY.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above files should only contain the data of the respective countries.  Ex. NEWYORK file only contains, NEWYORK data.&lt;/P&gt;&lt;P&gt;The number of countries can keep changing.&lt;/P&gt;&lt;P&gt;Can you help to provide a solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-multiple-Output-files-based-on-Input-Data/m-p/2367149#M130558</guid>
      <dc:creator>rajesh90</dc:creator>
      <dc:date>2024-11-15T23:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple Output files based on Input Data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-multiple-Output-files-based-on-Input-Data/m-p/2367150#M130559</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;You need to iterate each row and set a dynamic output file name. eg:&lt;/P&gt;&lt;P&gt;tFileInputDelimited--row1--tFlowToiterate--tFixedFlowInput--main--tFileOutputDelimited&lt;/P&gt;&lt;P&gt;on tFixedFlowInput: generate the current record.&lt;/P&gt;&lt;P&gt;on tFileOutputDelimited, set a dynamic output file name:&lt;/P&gt;&lt;P&gt;"D:/file/"+(String)globalMap.get("row1.columnName")+".csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note: columnName is column name of the first column defined on tFileInputDelimited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 03:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-multiple-Output-files-based-on-Input-Data/m-p/2367150#M130559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-17T03:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple Output files based on Input Data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-multiple-Output-files-based-on-Input-Data/m-p/2367151#M130560</link>
      <description>&lt;P&gt;You could these below steps to get job done.&lt;/P&gt;&lt;P&gt;1-- a whole job&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000If64SAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147564iBEE763571B6D911F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000If64SAAR.png" alt="0695b00000If64SAAR.png" /&gt;&lt;/span&gt;2--input file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000If66EAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149856i54C0B6A7C19F4EDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000If66EAAR.png" alt="0695b00000If66EAAR.png" /&gt;&lt;/span&gt;3--tUniqRow to get unique value of the city column&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000If66dAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128484i0C55F4CE0205D7D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000If66dAAB.png" alt="0695b00000If66dAAB.png" /&gt;&lt;/span&gt;4--tFlowToIterate to make Talend iterate through those unique city values&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000If66xAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139804iB7EBF137BF1F146C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000If66xAAB.png" alt="0695b00000If66xAAB.png" /&gt;&lt;/span&gt;5--Again input file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000If66EAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149856i54C0B6A7C19F4EDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000If66EAAR.png" alt="0695b00000If66EAAR.png" /&gt;&lt;/span&gt;6--tFilterRow to filter out rows based on the current iteration value ( You get the current iteration city value from the Outline view &amp;gt;&amp;gt; TFlowToIterate &lt;B&gt;((String)globalMap.get("city_var"))&lt;/B&gt; ).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000If67CAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155570iBAB8E8AD282E9162/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000If67CAAR.png" alt="0695b00000If67CAAR.png" /&gt;&lt;/span&gt;7--output files, make sure you put again this variable + &lt;B&gt;((String)globalMap.get("city_var"))&lt;/B&gt; +".csv" after your directory path&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000If67MAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146065i059BB83AADD74C0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000If67MAAR.png" alt="0695b00000If67MAAR.png" /&gt;&lt;/span&gt;and you are done.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 10:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-multiple-Output-files-based-on-Input-Data/m-p/2367151#M130560</guid>
      <dc:creator>Mahamoutou</dc:creator>
      <dc:date>2021-09-17T10:03:21Z</dc:date>
    </item>
  </channel>
</rss>

