<?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: Loop in folders for files and records in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372834#M135624</link>
    <description>&lt;P&gt;How many files in real life?&lt;/P&gt;&lt;P&gt;How many records?&lt;/P&gt;&lt;P&gt;What's the job frequency?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 10:52:10 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-04-18T10:52:10Z</dc:date>
    <item>
      <title>Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372827#M135617</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need a help to find loop handling&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Scenario :&lt;/P&gt; 
&lt;P&gt;I have 5 files with 100 records each.&lt;/P&gt; 
&lt;P&gt;I want to take 1st file and load 10 records as loop&amp;nbsp;and load into&amp;nbsp;db. Once first file is over then 2nd file and again load 10 records as loop &lt;SPAN&gt;and load into&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;db&lt;/SPAN&gt;. It should iterate for all 5 files.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can anyone help me?&lt;/P&gt; 
&lt;P&gt;Thanks in Advance&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 05:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372827#M135617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T05:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372828#M135618</link>
      <description>Hi, 
&lt;BR /&gt;Use tFileList to iterate over the file list, then tFileInputDelimited (or other depending on the files type) to get the records. 
&lt;BR /&gt;In this component, use the variable tFileList_1_CURRENT_FILEPATH as the filename and set the field "Limit" to the number of records you want to read.</description>
      <pubDate>Wed, 18 Apr 2018 07:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372828#M135618</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-18T07:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372829#M135619</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am setting "Limit" as 10&amp;nbsp; then its taking only 1st 10 record of each file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want this to read full file means 100 records so 10 times it should iterate then it should go for 2nd file&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 07:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372829#M135619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T07:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372830#M135620</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Sorry, I misread your request.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The easiest way is to split the input files into 10-line files.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The process should look like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;tFileList--&amp;gt;tFileInputDelimited--&amp;gt;tFileOutputDelimited
| onSubjobOK
tFileList--&amp;gt;tFileInputDelimited--&amp;gt;t&amp;lt;DBName&amp;gt;Output&lt;/PRE&gt;
&lt;P&gt;In 1rst subjob, you iterate over the input files and push the result into small output files.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the tFileOutputDelimited, tick the option "&lt;EM&gt;Split output in several files&lt;/EM&gt;" and&amp;nbsp;enter 10 into the field "&lt;EM&gt;Rows in each output file&lt;/EM&gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;In the 2nd subjob you will iterate over the list of "small" input files, read the content and push it into your database.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 08:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372830#M135620</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-18T08:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372831#M135621</link>
      <description>&lt;P&gt;Thanks TRF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splitting file is not allowed here. we want to use same file.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 08:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372831#M135621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T08:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372832#M135622</link>
      <description>&lt;P&gt;Could you explain why?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372832#M135622</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-18T10:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372833#M135623</link>
      <description>&lt;P&gt;We have given suggestion of splitting file but people saying it will cause i/o operation so need to avoid it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So only&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372833#M135623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T10:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372834#M135624</link>
      <description>&lt;P&gt;How many files in real life?&lt;/P&gt;&lt;P&gt;How many records?&lt;/P&gt;&lt;P&gt;What's the job frequency?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372834#M135624</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-18T10:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372835#M135625</link>
      <description>&lt;P&gt;Records - 25 Million&lt;/P&gt;
&lt;P&gt;approximately 10 files&lt;/P&gt;
&lt;P&gt;25 Million is one time but 3 Million weekly&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372835#M135625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T10:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372836#M135626</link>
      <description>&lt;P&gt;Records - 25 Million&lt;/P&gt;
&lt;P&gt;approximately 10 files&lt;/P&gt;
&lt;P&gt;25 Million is one time but 3 Million weekly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to process in batch&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give some suggestion?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372836#M135626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T11:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372837#M135627</link>
      <description>&lt;P&gt;I strongly suggest you to try the suggested approach.&lt;/P&gt;
&lt;P&gt;3 million records per week, not a so huge volume, and Talend is very fast with this kind of files, it could be a good solution despite of the opposition regarding the i/o operations.&lt;/P&gt;
&lt;P&gt;Else, you will have to play with tFlowToIterate / tLoop / tIterateToFlow to build the right algorithm.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372837#M135627</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-18T11:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in folders for files and records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372838#M135628</link>
      <description>&lt;P&gt;Thanks TRF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tFlowToIterate / tLoop / tIterateToFlow &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how to use mentioned component and where ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-in-folders-for-files-and-records/m-p/2372838#M135628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T11:22:08Z</dc:date>
    </item>
  </channel>
</rss>

