<?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 a positional file into multiple positional files depending on number of rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211040#M9222</link>
    <description>&lt;P&gt;Hello, thanks, I will try it.&lt;/P&gt;
&lt;P&gt;I have another question/issue. I have a header and footer that each file has to have also. The problem is that the footer has the number of rows, I'm thinging to count it to hash file and then write it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the best way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 09:14:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-21T09:14:47Z</dc:date>
    <item>
      <title>Split a positional file into multiple positional files depending on number of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211038#M9220</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm needing to split a Positional file into multiple positional files with a maximum of rows.&lt;/P&gt;
&lt;P&gt;Like a number of rows equal to 400000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The tfileoutputdelimiter has the option to split files, but the positional file doesn't have.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone can help me?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211038#M9220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Split a positional file into multiple positional files depending on number of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211039#M9221</link>
      <description>Use this design: 
&lt;BR /&gt;tFileInputPositional--&amp;gt;tJavaRow--&amp;gt;tFlowToIterate--&amp;gt;tFixedFlowInput--&amp;gt;tFileOuputPositional 
&lt;BR /&gt;In the tJavaRow you need a sequence from 1 to 400000 and a global variable corresponding to the current file number. Each time the sequence reach the value of 400000, reset it and set the file number to the next value. 
&lt;BR /&gt;tFlowToIterate is here to break the flow and tFixedFlowInput is here to create a new one to populate the output file (this sequence is requires to change the filename on the fly). 
&lt;BR /&gt;Finaly, use the global variable for the filename construction to make it dynamic.</description>
      <pubDate>Sun, 20 Oct 2019 22:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211039#M9221</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-20T22:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Split a positional file into multiple positional files depending on number of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211040#M9222</link>
      <description>&lt;P&gt;Hello, thanks, I will try it.&lt;/P&gt;
&lt;P&gt;I have another question/issue. I have a header and footer that each file has to have also. The problem is that the footer has the number of rows, I'm thinging to count it to hash file and then write it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the best way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 09:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211040#M9222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-21T09:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Split a positional file into multiple positional files depending on number of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211041#M9223</link>
      <description>&lt;P&gt;Using tFileRowCount you can the number of records included into a given file.&lt;/P&gt;
&lt;P&gt;Based on this information, you can set the Header to the right value to get the last record.&lt;/P&gt;
&lt;P&gt;Is that what you want?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211041#M9223</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-21T10:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Split a positional file into multiple positional files depending on number of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211042#M9224</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm implementing it by another way, limiting the rows at the DB.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what I want is a loop where the number of rows is not major of 400000. From the DB is reading a block of data until the function has 0 records. So every time that we read the data from DB,&amp;nbsp; that data is deleted, until it has no rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LOOP&lt;/P&gt;
&lt;P&gt;From: 0&lt;/P&gt;
&lt;P&gt;To:&amp;nbsp; &amp;nbsp; 400000&lt;/P&gt;
&lt;P&gt;Step:&amp;nbsp;((Integer)globalMap.get("tDBInput_1_NB_LINE"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however the information in DB sometimes has less than 400000, and the loop still goes. How can I do this? I want a maximum of 400000 but sometimes the DB has less.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if you are understanding.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211042#M9224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-22T13:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Split a positional file into multiple positional files depending on number of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211043#M9225</link>
      <description>Initially you were talking about an input file. From where comes this DB?&lt;BR /&gt;Anyway, if you want a really simple way, redirect the output to a tFileOutputDelimited with the option "Split output in several files" ticked and value for "Rows in each output file" set to 400000. Then, use a tFileList to iterate over each output file created.</description>
      <pubDate>Tue, 22 Oct 2019 13:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211043#M9225</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-22T13:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Split a positional file into multiple positional files depending on number of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211044#M9226</link>
      <description>&lt;P&gt;Hello, thanks,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Initially you were talking about an input file. From where comes this DB?"&lt;/P&gt; 
&lt;P&gt;yes, because I'm testing solutions. I have a job and this is a change to a job that is already working.&lt;/P&gt; 
&lt;P&gt;The goal is that now, I have to divide a positional if the number of rows is more than 400000. But this process is creating a file depending on the name, and have header and footer (personalized footer and header).&lt;/P&gt; 
&lt;P&gt;I'm thinking now in ssh, because, with iterate is taking to much time to running.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm testing solutions, but the only one that I'm seeing that will really work is making a shell script.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 12:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-positional-file-into-multiple-positional-files-depending/m-p/2211044#M9226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-23T12:08:49Z</dc:date>
    </item>
  </channel>
</rss>

