<?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 execute on every 100 rows of data from DB? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272907#M50049</link>
    <description>&lt;P&gt;Now I get what you mean with duplicates. You will have to look into the calculations to make sure that a single record is not processed in another batch again. I do not know if your file has any headers or footers in it. Please try to understand the calculations done here and try to adapt them to your needs. Unfortunately, I cannot present you with a perfect solution here.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 09:32:38 GMT</pubDate>
    <dc:creator>JR1</dc:creator>
    <dc:date>2019-08-09T09:32:38Z</dc:date>
    <item>
      <title>How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272901#M50043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am pretty sure talend should be able to do this task relatively easily, but I am not sure the best way to go about it. I have 100,000 rows of data, but an tSOAP I am calling can only take 100 rows of data per tSOAP call. I would like to execute an tSOAP call on 100 rows each time until I have looped through the full 100,000 row data set. Any advice/recommended components on going about this is much appreciated.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Pratap.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 11:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272901#M50043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-06T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272902#M50044</link>
      <description>Any Update please</description>
      <pubDate>Wed, 07 Aug 2019 11:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272902#M50044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T11:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272903#M50045</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Not really sure what you have as an input but here I will assume it is a csv file. Set your job up like this (assuming you have a header in your input file):&lt;/P&gt;
&lt;PRE&gt;tFileInputDelimited (pointing at your file just to count the records - no outputs)&amp;nbsp;
-- OnSubjobOK --&amp;gt;
tLoop (From: 0 To: ((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")), Step: 100)
-- Iterate --&amp;gt;&amp;nbsp;
tFileInputDelimited (pointing at your file again but this time with Header:&amp;nbsp;1 + ((Integer)globalMap.get("tLoop_1_CURRENT_VALUE")) and Limit: 100)
-- Main --&amp;gt; &lt;BR /&gt;tSOAP (or whatever you want to do after this)&lt;/PRE&gt;
&lt;P&gt;This will split up your input into batches of 100. If you are using a different kind of input (e.g. an Oracle table) the counting of the records and querying the table will look different of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 20:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272903#M50045</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-08T20:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272904#M50046</link>
      <description>Thanks 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;It seems like, working but i have 220 custoemrs in .csv file, but when every do the iteration with 100, then 300 customers are processed, i hope, duplicate records also processing? How we can fix this issue</description>
      <pubDate>Fri, 09 Aug 2019 07:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272904#M50046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T07:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272905#M50047</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you tried it? If you set the limit to 100 and there are only 20 records left from where you start (by setting the header value), it will only process those 20 records. I do not really know what you mean with duplicates.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 07:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272905#M50047</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-09T07:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272906#M50048</link>
      <description>Yes, i tried, but getting some of customer coming again into flow ,
&lt;BR /&gt;Below implementation where i did,
&lt;BR /&gt;tFileInputDelimited (pointing at your file just to count the records - no outputs) - Just file location given, i didn't given any header and limit here, is it do any thing other then file
&lt;BR /&gt;-- OnSubjobOK --&amp;gt;
&lt;BR /&gt;tLoop (From: 0 To: ((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")), Step: 100)
&lt;BR /&gt;-- Iterate --&amp;gt;
&lt;BR /&gt;tFileInputDelimited (pointing at your file again but this time with Header: 1 + ((Integer)globalMap.get("tLoop_1_CURRENT_VALUE")) and Limit: 100)- same i did, i didn't done anything other then above
&lt;BR /&gt;-- Main --&amp;gt;
&lt;BR /&gt;tSOAP (or whatever you want to do after this)-used
&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Aug 2019 08:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272906#M50048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T08:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272907#M50049</link>
      <description>&lt;P&gt;Now I get what you mean with duplicates. You will have to look into the calculations to make sure that a single record is not processed in another batch again. I do not know if your file has any headers or footers in it. Please try to understand the calculations done here and try to adapt them to your needs. Unfortunately, I cannot present you with a perfect solution here.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 09:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272907#M50049</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-09T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272908#M50050</link>
      <description>here what is happening, i have file with values&lt;BR /&gt;123451&lt;BR /&gt;123456&lt;BR /&gt;124578&lt;BR /&gt;124574&lt;BR /&gt;125485&lt;BR /&gt;till 1000 rows&lt;BR /&gt;Ourput: 123451,123456,124578,124574,125485.. 100rows&lt;BR /&gt;123456,124578,124574,125485.. 100rows&lt;BR /&gt;124578,124574,125485.. 100rows&lt;BR /&gt;124574,125485.. 100rows&lt;BR /&gt;like that displaying, next row start with previous row 2nd id/customer, so its sending duplicate ids&lt;BR /&gt;Suggest if have any solution.</description>
      <pubDate>Fri, 09 Aug 2019 10:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272908#M50050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T10:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272909#M50051</link>
      <description>&lt;P&gt;There is something wrong with the "header" value in the second file component. Looking at this, I would assume that you have chosen&amp;nbsp;((Integer)globalMap.get("tLoop_1_CURRENT_ITERATION"))) instead of&amp;nbsp;((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"))). Correct?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 10:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272909#M50051</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-09T10:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272910#M50052</link>
      <description>Yes, Exactly, its working fine now.Thanks 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 09 Aug 2019 11:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272910#M50052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T11:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272911#M50053</link>
      <description>Could you please let us know that how we can loop from DB instead of tFileInputDelimited (pointing at your file just to count the records)</description>
      <pubDate>Fri, 09 Aug 2019 11:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272911#M50053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T11:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272912#M50054</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a similar use case, except I need to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;execute (or Chunk) every 100 rows from an Oracle DB to a tSOAP call.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 18:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272912#M50054</guid>
      <dc:creator>elkhounds</dc:creator>
      <dc:date>2019-08-09T18:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272913#M50055</link>
      <description>&lt;P&gt;For Oracle DBs, you would have to get the row count first by using a tDBRow component and performing a "SELECT COUNT(*) FROM XXX WHERE YYY". Use a tFlowToIterate component after that and store the only result record (there can be only one) via a tSetGlobalVar in a global variable.&lt;/P&gt;&lt;P&gt;Instead of the second tFileInputXXX component, you would use a tDBInput component and for Oracle, you would use a statement like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT A, B, C, D FROM XXX WHERE YYY AND ROWNUM &amp;gt; " +&amp;nbsp;String.valueOf(&lt;SPAN&gt;((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"))))&lt;/SPAN&gt; + " AND ROWNUM &amp;lt; " +&amp;nbsp;String.valueOf(&lt;SPAN&gt;((Integer)globalMap.get("tLoop_1_CURRENT_VALUE")))&lt;/SPAN&gt; +100)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think PostgreSQL and MySQL (and others) do not have the ROWNUM pseudo-column - you will have to find your own way here...&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 21:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272913#M50055</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-09T21:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272914#M50056</link>
      <description>&lt;P&gt;I am trying to do the same thing in sql server. I am able to get trest call out for one row. In that case i am using value from 1 to row count with step as 1 in tloop component and the output of tdbinput am writing as global variable in tjava. But am not able to do the same in batch of 10. I am able to do till tdbinput by putting where condtion as&amp;nbsp;&amp;nbsp;id &amp;gt;=" + (Integer)globalMap.get("tLoop_1_CURRENT_VALUE") + "and id &amp;lt;= " + (Integer)globalMap.get("tLoop_1_CURRENT_VALUE") +10 . But not able to proceed after that. I tried titeratetoflow with value&amp;nbsp;((String)globalMap.get("tDBinput_4_QUERY")).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my job:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lxv7"&gt;new_job_issue.jpg&lt;/A&gt;</description>
      <pubDate>Wed, 08 Apr 2020 09:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272914#M50056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-08T09:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute on every 100 rows of data from DB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272915#M50057</link>
      <description>&lt;P&gt;Is someone online and can help me...thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 21:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-on-every-100-rows-of-data-from-DB/m-p/2272915#M50057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-08T21:09:41Z</dc:date>
    </item>
  </channel>
</rss>

