<?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 Divide 10 in ((Integer)globalMap.get(&amp;quot;tFileInputDelimited_1_NB_LINE&amp;quot;)) Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Divide-10-in-Integer-globalMap-get-quot-tFileInputDelimited-1-NB/m-p/2360983#M125447</link>
    <description>&lt;P&gt;Hi Team, I want to divide 10 in ((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")) record count and split 10 files in the tFileOutputDelimited output&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:21:53 GMT</pubDate>
    <dc:creator>pravakarc</dc:creator>
    <dc:date>2024-11-15T21:21:53Z</dc:date>
    <item>
      <title>Divide 10 in ((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")) Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Divide-10-in-Integer-globalMap-get-quot-tFileInputDelimited-1-NB/m-p/2360983#M125447</link>
      <description>&lt;P&gt;Hi Team, I want to divide 10 in ((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")) record count and split 10 files in the tFileOutputDelimited output&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Divide-10-in-Integer-globalMap-get-quot-tFileInputDelimited-1-NB/m-p/2360983#M125447</guid>
      <dc:creator>pravakarc</dc:creator>
      <dc:date>2024-11-15T21:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Divide 10 in ((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")) Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Divide-10-in-Integer-globalMap-get-quot-tFileInputDelimited-1-NB/m-p/2360984#M125448</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;The global variable ((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")) can be only used in next subjob, you can't used it directly in the current subjob, so I suggest you to use tFileRowCount to get the number of total rows of file first, and calculate the number of rows of each file if you need to split the output to several files. eg:&lt;/P&gt;&lt;P&gt;tFileRowCount_1&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tJava&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tFileInputDelimited--main--&amp;gt;tFileOutputDelimited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJava:'&lt;/P&gt;&lt;P&gt;int total_nb_line=((Integer)globalMap.get("tFileRowCount_1_COUNT"));&lt;/P&gt;&lt;P&gt;int each_file_rows=total_nb_line/10+1;&lt;/P&gt;&lt;P&gt;globalMap.put("keyName",each_file_rows);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the advanced settings panel of tFileOutputDelimited, check the 'Split output in several files' and set the parameter of Rows in each output file as:&lt;/P&gt;&lt;P&gt;(Integer)globalMap.get("keyName")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps you!&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 07:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Divide-10-in-Integer-globalMap-get-quot-tFileInputDelimited-1-NB/m-p/2360984#M125448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-13T07:31:25Z</dc:date>
    </item>
  </channel>
</rss>

