<?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: Create floders based on column values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-floders-based-on-column-values/m-p/2361413#M125786</link>
    <description>&lt;P&gt;There are a couple of things to think about here. First of all, you will need to be able to use a bit of Java to manipulate your date information to get the required String to build your folder path. Take a look here:&amp;nbsp;&lt;A href="https://www.talendforge.org/forum/viewtopic.php?id=17451" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/viewtopic.php?id=17451&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;The above should give you an idea of how to achieve this using Talend system routines.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The next bit to consider is a little bit more complicated. You can create your folder when you create a file that needs to be written in that folder. That is easy enough. SO you will not have to worry about preemptively creating your folder and then writing your file there. But it looks like you will need to keep changing the file you are writing to in a single flow.....which does not work out of the box. You will need to group your data by output file and iterate over that group so that your file is created and written to in separate flows......which is a pain.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Or (if you are not scared of a little Java) you can follow what I have done in this tutorial....&lt;A href="https://www.rilhia.com/tutorials/load-data-dynamic-number-files" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/load-data-dynamic-number-files&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 09:35:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-01T09:35:04Z</dc:date>
    <item>
      <title>Create floders based on column values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-floders-based-on-column-values/m-p/2361412#M125785</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have below scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source : Oracle/File&lt;/P&gt;&lt;P&gt;Target: File/Oracle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source Columns&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;snlno, txn_dt&lt;/P&gt;&lt;P&gt;1, 2017-01-07&lt;/P&gt;&lt;P&gt;2,&lt;SPAN&gt;2017-01-06&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1,2017-01-05&lt;/P&gt;&lt;P&gt;2,&lt;SPAN&gt;2017-01-05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Required output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Directory: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d:/output/6jan2017/6thdayrecords.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d:/output/5jan2017/5thdayrecords.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d:/output/7jan2017/7thdayrecords.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want store all distinct dates in context variable and use to create folder&amp;nbsp;based on dates, store records inside directory only specific&amp;nbsp;to that date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shridhar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-floders-based-on-column-values/m-p/2361412#M125785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T08:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create floders based on column values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-floders-based-on-column-values/m-p/2361413#M125786</link>
      <description>&lt;P&gt;There are a couple of things to think about here. First of all, you will need to be able to use a bit of Java to manipulate your date information to get the required String to build your folder path. Take a look here:&amp;nbsp;&lt;A href="https://www.talendforge.org/forum/viewtopic.php?id=17451" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/viewtopic.php?id=17451&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;The above should give you an idea of how to achieve this using Talend system routines.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The next bit to consider is a little bit more complicated. You can create your folder when you create a file that needs to be written in that folder. That is easy enough. SO you will not have to worry about preemptively creating your folder and then writing your file there. But it looks like you will need to keep changing the file you are writing to in a single flow.....which does not work out of the box. You will need to group your data by output file and iterate over that group so that your file is created and written to in separate flows......which is a pain.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Or (if you are not scared of a little Java) you can follow what I have done in this tutorial....&lt;A href="https://www.rilhia.com/tutorials/load-data-dynamic-number-files" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/load-data-dynamic-number-files&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-floders-based-on-column-values/m-p/2361413#M125786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T09:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create floders based on column values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-floders-based-on-column-values/m-p/2361414#M125787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for valuable input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not good in java, Let me go though as suggested inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shridhar&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 06:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-floders-based-on-column-values/m-p/2361414#M125787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-02T06:46:58Z</dc:date>
    </item>
  </channel>
</rss>

