<?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 Writing data from tmap to multiple files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370371#M133420</link>
    <description>&lt;P&gt;Hello all, &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I have multiples files, i want to replace certain string in it and update the same. &lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;File 1 abcdef&lt;/P&gt;&lt;P&gt;File 2 sdabcd&lt;/P&gt;&lt;P&gt;File 3 jurabcdg&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Final Output:&lt;/P&gt;&lt;P&gt;File 1 1ef&lt;/P&gt;&lt;P&gt;File 2 ad1&lt;/P&gt;&lt;P&gt;File 3 jur1g&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Could anyone please help me with the logic using components or custom code? Iam new to talend as well as java. ​&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:50:13 GMT</pubDate>
    <dc:creator>AJ151</dc:creator>
    <dc:date>2024-11-16T01:50:13Z</dc:date>
    <item>
      <title>Writing data from tmap to multiple files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370371#M133420</link>
      <description>&lt;P&gt;Hello all, &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I have multiples files, i want to replace certain string in it and update the same. &lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;File 1 abcdef&lt;/P&gt;&lt;P&gt;File 2 sdabcd&lt;/P&gt;&lt;P&gt;File 3 jurabcdg&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Final Output:&lt;/P&gt;&lt;P&gt;File 1 1ef&lt;/P&gt;&lt;P&gt;File 2 ad1&lt;/P&gt;&lt;P&gt;File 3 jur1g&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Could anyone please help me with the logic using components or custom code? Iam new to talend as well as java. ​&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370371#M133420</guid>
      <dc:creator>AJ151</dc:creator>
      <dc:date>2024-11-16T01:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data from tmap to multiple files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370372#M133421</link>
      <description>&lt;P&gt;@Aneeta Joseph​&amp;nbsp;,check the below solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008vf9bAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133167i6ACA6D27D6F3AE76/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008vf9bAAA.png" alt="0693p000008vf9bAAA.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;row1.col.replaceAll("abcd", "1")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008vf9gAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128198iBFCB1198326E8138/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008vf9gAAA.png" alt="0693p000008vf9gAAA.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;P&gt;&lt;B&gt;If you&lt;/B&gt;&amp;nbsp;found my&amp;nbsp;&lt;B&gt;answer&lt;/B&gt;&amp;nbsp;helpful,&amp;nbsp;&lt;B&gt;please&lt;/B&gt;&amp;nbsp;give me a&amp;nbsp;&lt;B&gt;kudo&lt;/B&gt;&amp;nbsp;↑&amp;nbsp;&lt;B&gt;Help&lt;/B&gt;&amp;nbsp;others find&amp;nbsp;&lt;B&gt;answers&lt;/B&gt;&amp;nbsp;faster by accepting my post as&amp;nbsp;&lt;B&gt;a solution&lt;/B&gt;&amp;nbsp;√. Solved&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 04:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370372#M133421</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-07-22T04:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data from tmap to multiple files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370373#M133422</link>
      <description>&lt;P&gt;Hello @Manohar B​&amp;nbsp;The logic seems good.. Could you please also help me with writing it to multiple files as per the input order? &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 07:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370373#M133422</guid>
      <dc:creator>AJ151</dc:creator>
      <dc:date>2020-07-22T07:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data from tmap to multiple files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370374#M133423</link>
      <description>&lt;P&gt;@Xiaodi Shi&amp;nbsp;@Shicong Hong​&amp;nbsp;@Richard Hall​&amp;nbsp;@Fred Trebuchet​&amp;nbsp;@Nikhil Thampi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Hello All, &lt;/P&gt;&lt;P&gt;Sorry to​ tag you here. But could anyone please help with this? Iam stuck with this badly. Could see you in leaderboard, hope you could give me some solution for this. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aneeta​&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 05:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370374#M133423</guid>
      <dc:creator>AJ151</dc:creator>
      <dc:date>2020-07-27T05:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data from tmap to multiple files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370375#M133424</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;If the data are stored in different files, you can use tFileList to iterate each file, eg:&lt;/P&gt;&lt;P&gt;tfilelist--iterate--tFileInputDelimited--tmap--tFileOutputDelimited&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;There are some global variables predefined on tFileList, such as:&lt;/P&gt;&lt;P&gt;current file path：(String)globalMap.get("tFileList_1_CURRENT_FILEPATH") &lt;/P&gt;&lt;P&gt;current file name: (String)globalMap.get("tFileList_1_CURRENT_FILE")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, you can set the File name/Stream filed of tFileInputDelimited as:&lt;/P&gt;&lt;P&gt;(String)globalMap.get("tFileList_1_CURRENT_FILEPATH") &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the file name field of tFileOutputDelimited like:&lt;/P&gt;&lt;P&gt;"D:/file/"+(String)globalMap.get("tFileList_1_CURRENT_FILE")+".txt"&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;</description>
      <pubDate>Mon, 27 Jul 2020 07:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370375#M133424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-27T07:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data from tmap to multiple files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370376#M133425</link>
      <description>&lt;P&gt;Thanks a lot for the response. Lemme try implementing the same. And will update you soon. ​&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 13:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370376#M133425</guid>
      <dc:creator>AJ151</dc:creator>
      <dc:date>2020-07-27T13:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data from tmap to multiple files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370377#M133426</link>
      <description>&lt;P&gt;This works perfect. Hearty thanks. ​&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 20:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writing-data-from-tmap-to-multiple-files/m-p/2370377#M133426</guid>
      <dc:creator>AJ151</dc:creator>
      <dc:date>2020-07-27T20:15:45Z</dc:date>
    </item>
  </channel>
</rss>

