<?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 syntax error on token &amp;quot;(&amp;quot;, expression expected after this token in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/syntax-error-on-token-quot-quot-expression-expected-after-this/m-p/2317327#M87786</link>
    <description>Hello ,
&lt;BR /&gt; 
&lt;BR /&gt; Im using talend open studio (4.1.1.r50363)
&lt;BR /&gt; 
&lt;BR /&gt; I need to send a mail with attachment only if my condition meets with system time (ie:scheduling inside talend without using 3rd party tool) .
&lt;BR /&gt;so i used "tjavarow" stage and wrote a java code as follows :
&lt;BR /&gt;------------------------------
&lt;BR /&gt;String Time=TalendDate.formatDate("HH:mm",TalendDate.getCurrentDate());
&lt;BR /&gt;String t="10:30";
&lt;BR /&gt;if(Time==t)
&lt;BR /&gt;{
&lt;BR /&gt;globalMap.put("isSend", true);
&lt;BR /&gt;}
&lt;BR /&gt;else
&lt;BR /&gt;{
&lt;BR /&gt;globalMap.put("isSend",false);
&lt;BR /&gt;}
&lt;BR /&gt;-------------------------------
&lt;BR /&gt;This code works fine in Eclipse but it shows some error in talend as follows :
&lt;BR /&gt;-------------------------------
&lt;BR /&gt;syntax error on token "(", expression expected after this token
&lt;BR /&gt;-------------------------------
&lt;BR /&gt;Is there any other way to schedule the job inside talend or pls suggest me to overcome this issue .
&lt;BR /&gt;Thanks In Advance ,
&lt;BR /&gt; Nilesh R</description>
    <pubDate>Sat, 16 Nov 2024 12:44:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:44:12Z</dc:date>
    <item>
      <title>syntax error on token "(", expression expected after this token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/syntax-error-on-token-quot-quot-expression-expected-after-this/m-p/2317327#M87786</link>
      <description>Hello ,
&lt;BR /&gt; 
&lt;BR /&gt; Im using talend open studio (4.1.1.r50363)
&lt;BR /&gt; 
&lt;BR /&gt; I need to send a mail with attachment only if my condition meets with system time (ie:scheduling inside talend without using 3rd party tool) .
&lt;BR /&gt;so i used "tjavarow" stage and wrote a java code as follows :
&lt;BR /&gt;------------------------------
&lt;BR /&gt;String Time=TalendDate.formatDate("HH:mm",TalendDate.getCurrentDate());
&lt;BR /&gt;String t="10:30";
&lt;BR /&gt;if(Time==t)
&lt;BR /&gt;{
&lt;BR /&gt;globalMap.put("isSend", true);
&lt;BR /&gt;}
&lt;BR /&gt;else
&lt;BR /&gt;{
&lt;BR /&gt;globalMap.put("isSend",false);
&lt;BR /&gt;}
&lt;BR /&gt;-------------------------------
&lt;BR /&gt;This code works fine in Eclipse but it shows some error in talend as follows :
&lt;BR /&gt;-------------------------------
&lt;BR /&gt;syntax error on token "(", expression expected after this token
&lt;BR /&gt;-------------------------------
&lt;BR /&gt;Is there any other way to schedule the job inside talend or pls suggest me to overcome this issue .
&lt;BR /&gt;Thanks In Advance ,
&lt;BR /&gt; Nilesh R</description>
      <pubDate>Sat, 16 Nov 2024 12:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/syntax-error-on-token-quot-quot-expression-expected-after-this/m-p/2317327#M87786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error on token "(", expression expected after this token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/syntax-error-on-token-quot-quot-expression-expected-after-this/m-p/2317328#M87787</link>
      <description>can anyone help me out for this issue asap?</description>
      <pubDate>Wed, 17 Aug 2011 12:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/syntax-error-on-token-quot-quot-expression-expected-after-this/m-p/2317328#M87787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-17T12:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error on token "(", expression expected after this token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/syntax-error-on-token-quot-quot-expression-expected-after-this/m-p/2317329#M87788</link>
      <description>I'd stay away from using Time as a variable name. It's a class in java.sql. Also, use equals() for string comparison.
&lt;BR /&gt;String curr_t=TalendDate.formatDate("HH:mm",TalendDate.getCurrentDate());
&lt;BR /&gt;String t="10:30";
&lt;BR /&gt;if( curr_t != null &amp;amp;&amp;amp; curr_t.equals(t) )
&lt;BR /&gt;{
&lt;BR /&gt;globalMap.put("isSend", true);
&lt;BR /&gt;}
&lt;BR /&gt;else
&lt;BR /&gt;{
&lt;BR /&gt;globalMap.put("isSend",false);
&lt;BR /&gt;}</description>
      <pubDate>Wed, 17 Aug 2011 12:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/syntax-error-on-token-quot-quot-expression-expected-after-this/m-p/2317329#M87788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-17T12:52:25Z</dc:date>
    </item>
  </channel>
</rss>

