<?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 file into two different directory based on tSystem output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Copying-file-into-two-different-directory-based-on-tSystem/m-p/2260045#M41315</link>
    <description>Hi,
&lt;BR /&gt;Can you give us more details that we can help you? what's going wrong?
&lt;BR /&gt;Regards,
&lt;BR /&gt;Youssef</description>
    <pubDate>Fri, 28 Nov 2008 15:36:29 GMT</pubDate>
    <dc:creator>youssef2</dc:creator>
    <dc:date>2008-11-28T15:36:29Z</dc:date>
    <item>
      <title>Copying file into two different directory based on tSystem output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-file-into-two-different-directory-based-on-tSystem/m-p/2260044#M41314</link>
      <description>Hi all,
&lt;BR /&gt; i need to move the input files to the destination directory based on the output. my job is
&lt;BR /&gt;
&lt;BR /&gt;tFileList -- iterate --&amp;gt; tSystem -- if -- &amp;gt; tFileCopy_1
&lt;BR /&gt; |
&lt;BR /&gt; |
&lt;BR /&gt; ------ if -- &amp;gt; tFileCopy_2 
&lt;BR /&gt;
&lt;BR /&gt;i've checked the tSystem option Standard output &amp;amp; errors to "global variable". 
&lt;BR /&gt;my job returns the output text "date time .... ... successful ... ...." when it parsed successfully..
&lt;BR /&gt;otherwise "some text ... .... unsuccessful ...... some text ".
&lt;BR /&gt;if its parsed successfully i wanna copy into a dest dir (say A) , otherwise say B.
&lt;BR /&gt;i referred 2697 . so for if condition(1) i've given !((String)globalMap.get("tSystem_1_OUTPUT")).matches(".*Unsuccessful.*") &amp;amp;&amp;amp; for if(2)
&lt;BR /&gt;((String)globalMap.get("tSystem_1_OUTPUT")).matches(".*Unsuccessful.*")
&lt;BR /&gt;
&lt;BR /&gt;but its not working properly, can anyoe please help me out to come out of this ..</description>
      <pubDate>Sat, 16 Nov 2024 14:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-file-into-two-different-directory-based-on-tSystem/m-p/2260044#M41314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file into two different directory based on tSystem output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-file-into-two-different-directory-based-on-tSystem/m-p/2260045#M41315</link>
      <description>Hi,
&lt;BR /&gt;Can you give us more details that we can help you? what's going wrong?
&lt;BR /&gt;Regards,
&lt;BR /&gt;Youssef</description>
      <pubDate>Fri, 28 Nov 2008 15:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-file-into-two-different-directory-based-on-tSystem/m-p/2260045#M41315</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-28T15:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file into two different directory based on tSystem output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-file-into-two-different-directory-based-on-tSystem/m-p/2260046#M41316</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;my job returns the output text "date time .... ... successful ... ...." when it parsed successfully..&lt;BR /&gt;otherwise "some text ... .... unsuccessful ...... some text ".&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;set condition if successful: 
&lt;BR /&gt;!((String)globalMap.get("tSystem_1_OUTPUT")).contains("unsuccessful")
&lt;BR /&gt;otherwise unsuccessful:
&lt;BR /&gt;((String)globalMap.get("tSystem_1_OUTPUT")).contains("unsuccessful")
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 01 Dec 2008 05:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-file-into-two-different-directory-based-on-tSystem/m-p/2260046#M41316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-01T05:28:23Z</dc:date>
    </item>
  </channel>
</rss>

