<?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: Copying files to multiple destination folders in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232503#M22443</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I have created a simple flow with two destination folders but in your case you will have to build multiple if cases.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 545px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1bM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128370i7263B1A7B52C8EC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1bM.png" alt="0683p000009M1bM.png" /&gt;&lt;/span&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;We are reading the files using tFileList and iterating one file at a time. tjava is used to orchestrate the flow and do not have any functions in it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You will have to create multiple Run if statements from tjava to do file copy.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1fr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151353iD3BACA8A9C8900B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1fr.png" alt="0683p000009M1fr.png" /&gt;&lt;/span&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;Below is a sample&amp;nbsp;flow with pseudo code to move your file to ABC folder. You are reading the current file and taking the substring of it and verifying whether it is ABC. Similarly you will have to do for other folders also.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Inside the file copy, you need to configure as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1ef.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134623i4AF896A90E0E3AEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1ef.png" alt="0683p000009M1ef.png" /&gt;&lt;/span&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;Hope I have answered your query. Could you please mark the topic as resolved if you are happy? Kudos are also welcome &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;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 05:43:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-14T05:43:36Z</dc:date>
    <item>
      <title>Copying files to multiple destination folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232499#M22439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have 9 files with different names in input folder&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;ABC_talend_yyyy-mm-dd_00.csv&lt;/P&gt; 
&lt;P&gt;TENG_ABC_talend_yyyy-mm-dd_00.TXT&lt;/P&gt; 
&lt;P&gt;TANG_ABC_talend_yyyy-mm-dd_00.TXT&lt;/P&gt; 
&lt;P&gt;DEF_talend_yyyy-mm-dd_01.csv&lt;/P&gt; 
&lt;P&gt;TENG_DEF_talend_yyyy-mm-dd_01.TXT&lt;/P&gt; 
&lt;P&gt;TANG_DEF_talend_yyyy-mm-dd_01.TXT&lt;/P&gt; 
&lt;P&gt;GHI_talend_yyyy-mm-dd_02.csv&lt;/P&gt; 
&lt;P&gt;TENG_GHI_talend_yyyy-mm-dd_02.TXT&lt;/P&gt; 
&lt;P&gt;TANG_GHI_talend_yyyy-mm-dd_02.TXT&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;I need to copy these 9 files to 9 different paths please find the below screen shot, kindly suggest a generic method to achieve this. Thanks in advance.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="out.JPG" style="width: 808px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1fX.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135607iC470DD0F17FC77CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1fX.jpg" alt="0683p000009M1fX.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 17:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232499#M22439</guid>
      <dc:creator>muralam</dc:creator>
      <dc:date>2018-12-13T17:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Copying files to multiple destination folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232500#M22440</link>
      <description>&lt;P&gt;can someone please help to fix the below query&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 02:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232500#M22440</guid>
      <dc:creator>muralam</dc:creator>
      <dc:date>2018-12-14T02:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copying files to multiple destination folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232501#M22441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The most easy way will be to handle it through tfilelist and a series of Runif conditions in an orchestrated way. End of day, we are picking one file at a time and check whether the file name matches with corresponding folder name (or a pattern) and move them accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I would suggest you to create a draft flow with sample files and if you are stuck, feel free to come back at the point of failure and we can help you there. You just have to add some screenshots of the job flow and the point of error so that we will get more details about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 04:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232501#M22441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-14T04:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copying files to multiple destination folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232502#M22442</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;could you please help with a simple flow&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 05:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232502#M22442</guid>
      <dc:creator>muralam</dc:creator>
      <dc:date>2018-12-14T05:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Copying files to multiple destination folders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232503#M22443</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I have created a simple flow with two destination folders but in your case you will have to build multiple if cases.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 545px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1bM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128370i7263B1A7B52C8EC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1bM.png" alt="0683p000009M1bM.png" /&gt;&lt;/span&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;We are reading the files using tFileList and iterating one file at a time. tjava is used to orchestrate the flow and do not have any functions in it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You will have to create multiple Run if statements from tjava to do file copy.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1fr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151353iD3BACA8A9C8900B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1fr.png" alt="0683p000009M1fr.png" /&gt;&lt;/span&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;Below is a sample&amp;nbsp;flow with pseudo code to move your file to ABC folder. You are reading the current file and taking the substring of it and verifying whether it is ABC. Similarly you will have to do for other folders also.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Inside the file copy, you need to configure as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1ef.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134623i4AF896A90E0E3AEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1ef.png" alt="0683p000009M1ef.png" /&gt;&lt;/span&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;Hope I have answered your query. Could you please mark the topic as resolved if you are happy? Kudos are also welcome &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;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 05:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-files-to-multiple-destination-folders/m-p/2232503#M22443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-14T05:43:36Z</dc:date>
    </item>
  </channel>
</rss>

