<?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: file count in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291547#M64723</link>
    <description>Hi&lt;BR /&gt;Set up the job like this:&lt;BR /&gt;tFileList --iterate1--tfileinput&lt;BR /&gt;    |&lt;BR /&gt;on subjob ok&lt;BR /&gt;    |&lt;BR /&gt; tjava&lt;BR /&gt;with the same code and everything you have.&lt;BR /&gt;Regards,&lt;BR /&gt;Brandon</description>
    <pubDate>Tue, 02 Aug 2011 14:05:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-02T14:05:46Z</dc:date>
    <item>
      <title>file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291546#M64722</link>
      <description>Hi friends.. 
&lt;BR /&gt;Need your help. 
&lt;BR /&gt;I use tfilelist--iterate1--tfileinpute 
&lt;BR /&gt; : 
&lt;BR /&gt; : 
&lt;BR /&gt; iterate2 
&lt;BR /&gt; : 
&lt;BR /&gt; tjava 
&lt;BR /&gt;in tjava i want the total number of files in the path.. 
&lt;BR /&gt;my code 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;ystem.out.println("count " + ((Integer)globalMap.get("tFileList_1_NB_FILE")); 
&lt;BR /&gt;i have three files. 
&lt;BR /&gt;I need the printed message count : 3 
&lt;BR /&gt;instead i get count :1 
&lt;BR /&gt; count : 2 
&lt;BR /&gt; count :3 
&lt;BR /&gt;If i could get the total number of files in the first iteration it wud be helpful to solve my issue. 
&lt;BR /&gt;Note: do v have any component to fetch all files and print count? 
&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Sat, 16 Nov 2024 12:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291546#M64722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291547#M64723</link>
      <description>Hi&lt;BR /&gt;Set up the job like this:&lt;BR /&gt;tFileList --iterate1--tfileinput&lt;BR /&gt;    |&lt;BR /&gt;on subjob ok&lt;BR /&gt;    |&lt;BR /&gt; tjava&lt;BR /&gt;with the same code and everything you have.&lt;BR /&gt;Regards,&lt;BR /&gt;Brandon</description>
      <pubDate>Tue, 02 Aug 2011 14:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291547#M64723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-02T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291548#M64724</link>
      <description>hi brandon,
&lt;BR /&gt;Thanks for the reply,
&lt;BR /&gt;I can get the count as 3 if i have tjava in tfilelist but every time it iterate i want it to display a print message and that message should be printed only when the count of files is more than one.
&lt;BR /&gt;For instance,
&lt;BR /&gt;I use tfilelist--iterate1--tfileinput
&lt;BR /&gt; :
&lt;BR /&gt; :
&lt;BR /&gt; iterate2
&lt;BR /&gt; :
&lt;BR /&gt; tjava
&lt;BR /&gt;in tjava,
&lt;BR /&gt;System.out.println("Total row count : " + globalMap.get("tJavaRow_1_NB_LINE"));
&lt;BR /&gt;Here,in case of multiple files,it prints different different row count each time.
&lt;BR /&gt;i want to set condition before tjava accordingly so that it prints this message only when there is more than only one file..
&lt;BR /&gt;How do i do that?.
&lt;BR /&gt;Thnak you</description>
      <pubDate>Thu, 04 Aug 2011 11:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291548#M64724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T11:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291549#M64725</link>
      <description>Hi elma_ann&lt;BR /&gt;I do not understand clearly where is the tjavaRow which is being used in this condition ( globalMap.get("tJavaRow_1_NB_LINE")) )?&lt;BR /&gt;Maybe you could include some screenshots to give me a better understanding.&lt;BR /&gt;to add a condition to tJava try the following:&lt;BR /&gt;&lt;BR /&gt;        tfilelist--iterate1--tfileinput&lt;BR /&gt;           :&lt;BR /&gt;           :&lt;BR /&gt;         if&lt;BR /&gt;           :&lt;BR /&gt;         tjava&lt;BR /&gt;&lt;BR /&gt;in the if add the following code:&lt;BR /&gt;&lt;PRE&gt;((Integer)globalMap.get("tFileList_1_NB_FILE"))&amp;gt;1&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Aug 2011 11:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291549#M64725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T11:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291550#M64726</link>
      <description>Hi Brandon!!!
&lt;BR /&gt;screenshots attached.
&lt;BR /&gt;the if condition becomes true only when the file count is more than one..but i couldnt able to get it coz in every iteration it takes only one one file</description>
      <pubDate>Thu, 04 Aug 2011 12:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291550#M64726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T12:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291551#M64727</link>
      <description>Hi Elma_ann
&lt;BR /&gt;The problem is that you still have your second Iterate (Iterate2).
&lt;BR /&gt;Connect the tFileList straight to tjava5 using the if statement.
&lt;BR /&gt;tFileList--iterate-&amp;gt;yourjob
&lt;BR /&gt; |
&lt;BR /&gt; if
&lt;BR /&gt; |
&lt;BR /&gt;tJava_5
&lt;BR /&gt;
&lt;BR /&gt;As shown below:
&lt;BR /&gt;
&lt;IMG src="https://community.qlik.com/" /&gt;</description>
      <pubDate>Thu, 04 Aug 2011 15:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291551#M64727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T15:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291552#M64728</link>
      <description>Ok i see the problem&lt;BR /&gt;Your job is set up as follows:&lt;BR /&gt;tFilelist1 --Iterate--&amp;gt;fileinput&lt;BR /&gt;    |&lt;BR /&gt;iterate 2&lt;BR /&gt;    |&lt;BR /&gt;tjava3 --if--&amp;gt; tjava5&lt;BR /&gt;&lt;BR /&gt;It needs to be (Do not have a second iterate):&lt;BR /&gt;tFilelist1 --Iterate--&amp;gt;fileinput&lt;BR /&gt;    |&lt;BR /&gt;   if&lt;BR /&gt;    |&lt;BR /&gt;tjava5&lt;BR /&gt;see screenshot attached</description>
      <pubDate>Thu, 04 Aug 2011 15:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291552#M64728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T15:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291553#M64729</link>
      <description>Ok i see the problem&lt;BR /&gt;Your job is set up as follows:&lt;BR /&gt;tFilelist1 --Iterate--&amp;gt;fileinput&lt;BR /&gt;    |&lt;BR /&gt;iterate 2&lt;BR /&gt;    |&lt;BR /&gt;tjava3 --if--&amp;gt; tjava5&lt;BR /&gt;&lt;BR /&gt;It needs to be (Do not have a second iterate):&lt;BR /&gt;tFilelist1 --Iterate--&amp;gt;fileinput&lt;BR /&gt;    |&lt;BR /&gt;   if&lt;BR /&gt;    |&lt;BR /&gt;tjava5&lt;BR /&gt;see screenshot attached</description>
      <pubDate>Thu, 04 Aug 2011 15:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291553#M64729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T15:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291554#M64730</link>
      <description>How can we get total number of records in all files. ex: if i have 5 files each having 20,20,20,20,10 records in each file. I want to assign values in one context variable as 90.
&lt;BR /&gt;all files are at window directory.</description>
      <pubDate>Thu, 04 Jun 2015 08:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/file-count/m-p/2291554#M64730</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-06-04T08:08:50Z</dc:date>
    </item>
  </channel>
</rss>

