<?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 get latest Folder if folder created with multiple date and time in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-Folder-if-folder-created-with-multiple-date/m-p/2370605#M133631</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One approch i can give you is this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;List all folder in "Xyz" with tListFile and choose only folder in selection list&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009GsWaAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148260i32B200CD25BE2EDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009GsWaAAK.png" alt="0693p000009GsWaAAK.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry for the french version (The first is to retrieve only file, then folder or both)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's an iteration, use tIterationToFlow to catch all folders names (with global variable  ((String)globalMap.get("tFileList_1_CURRENT_FILE")) ) cast this in tJavarow to transforme it to integer and use tAggregatRow to get the max. Store this in tSetGlobalVar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On subjob Ok &lt;/P&gt;&lt;P&gt;Use the same manip to get the last month then day. Dont forget to add in the second tFilelist the value of the last year in the current workspace like this &lt;/P&gt;&lt;P&gt;"C: Xyz\\"+((String)globalMap.get("lastYear"))+"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;"C: Xyz\\"+((String)globalMap.get("lastYear"))+"\\"+((String)globalMap.get("lastYear")) on the 3d subjob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dont hesitate if you have some question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 10:25:02 GMT</pubDate>
    <dc:creator>JohnRMK</dc:creator>
    <dc:date>2020-07-24T10:25:02Z</dc:date>
    <item>
      <title>How to get latest Folder if folder created with multiple date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-Folder-if-folder-created-with-multiple-date/m-p/2370604#M133630</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get latest folder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MY folder structure is like C: Xyz\2020\07\22\1120\abc.csv&lt;/P&gt;&lt;P&gt;so here 2020 is year , 07 is month , 22 is day and 1120 is HHMM(time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so here in this 2020 folder we have a month name folder (ex. 07) and under month we have &lt;/P&gt;&lt;P&gt;7 folder of different different date (e.x 01,07, 06,17,15,18) and under this we have a folder with HHMM (ex 1120) and under this folder we have actual file, so my question is how to read latest date folder first and then latest time and then  finally read the file.  Please refer the screenshot for your reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so from Screenshot 1 i want to take 18 , from screenshot2 i want to take 05 and then final file.  please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-Folder-if-folder-created-with-multiple-date/m-p/2370604#M133630</guid>
      <dc:creator>AKumar1595005090</dc:creator>
      <dc:date>2024-11-16T01:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest Folder if folder created with multiple date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-Folder-if-folder-created-with-multiple-date/m-p/2370605#M133631</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One approch i can give you is this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;List all folder in "Xyz" with tListFile and choose only folder in selection list&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009GsWaAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148260i32B200CD25BE2EDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009GsWaAAK.png" alt="0693p000009GsWaAAK.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry for the french version (The first is to retrieve only file, then folder or both)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's an iteration, use tIterationToFlow to catch all folders names (with global variable  ((String)globalMap.get("tFileList_1_CURRENT_FILE")) ) cast this in tJavarow to transforme it to integer and use tAggregatRow to get the max. Store this in tSetGlobalVar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On subjob Ok &lt;/P&gt;&lt;P&gt;Use the same manip to get the last month then day. Dont forget to add in the second tFilelist the value of the last year in the current workspace like this &lt;/P&gt;&lt;P&gt;"C: Xyz\\"+((String)globalMap.get("lastYear"))+"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;"C: Xyz\\"+((String)globalMap.get("lastYear"))+"\\"+((String)globalMap.get("lastYear")) on the 3d subjob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dont hesitate if you have some question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 10:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-Folder-if-folder-created-with-multiple-date/m-p/2370605#M133631</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-07-24T10:25:02Z</dc:date>
    </item>
  </channel>
</rss>

