<?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: code for creating Routine in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311467#M82503</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time, But I have already created a routine for my requirement called from tmap and it works fine.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 19:37:39 GMT</pubDate>
    <dc:creator>vikramk</dc:creator>
    <dc:date>2019-07-03T19:37:39Z</dc:date>
    <item>
      <title>code for creating Routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311465#M82501</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have scenario where I have to get date difference between start date and end date, and there is a string column with Segment where I will get two values ex: xyz, zxy, and if the segment is xyz then the date difference should exclude sunday, saturday and if the segment value is zxy then it should exclude only sunday. Can any one help with the code in creating a routine for this&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311465#M82501</guid>
      <dc:creator>vikramk</dc:creator>
      <dc:date>2024-11-16T05:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: code for creating Routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311466#M82502</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; You cannot calculate the week day date difference with standard Talend date functions. You will have to create a custom routine and do a routine call from other Talend components.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; There are lot of solutions to identify the weekday count in stack overflow and you can use one of the methods provided from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/4600034/calculate-number-of-weekdays-between-two-dates-in-java" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/4600034/calculate-number-of-weekdays-between-two-dates-in-java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 20:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311466#M82502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T20:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: code for creating Routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311467#M82503</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time, But I have already created a routine for my requirement called from tmap and it works fine.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 19:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311467#M82503</guid>
      <dc:creator>vikramk</dc:creator>
      <dc:date>2019-07-03T19:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: code for creating Routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311468#M82504</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you could share the solution, it would be helpful for other Talend community members as a reference material.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 22:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311468#M82504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T22:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: code for creating Routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311469#M82505</link>
      <description>&lt;P&gt;Below is the code for DateDiff excluding Saturday and Sunday, works fine for my requirement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;public class days {&lt;/P&gt;
&lt;P&gt;static int day_of_week;&lt;BR /&gt;public static int getNumberOfDaysWorked(java.util.Date beginDate,java.util.Date endDate){&lt;BR /&gt;int val = 0;&lt;BR /&gt;while (beginDate.before(endDate)){&lt;BR /&gt;day_of_week=TalendDate.getPartOfDate("DAY_OF_WEEK", beginDate);&lt;BR /&gt;if(day_of_week != 1 &amp;amp;&amp;amp; day_of_week != 7){// 1 is for Sunday and 7 is for Saturday&lt;BR /&gt;val = val+1;&lt;BR /&gt;}&lt;BR /&gt;beginDate = TalendDate.addDate(beginDate, 1, "dd");&lt;BR /&gt;}&lt;BR /&gt;return val;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2019 07:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311469#M82505</guid>
      <dc:creator>vikramk</dc:creator>
      <dc:date>2019-07-06T07:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: code for creating Routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311470#M82506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Appreciate for taking time to explain the details back to Talend community. Please also mark your post containing the solution as answer to the original query. This will help our community members during their search.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2019 18:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311470#M82506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-06T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: code for creating Routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311471#M82507</link>
      <description>&lt;P&gt;Please follow the steps to create a routine in the below link.This might help&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=_4xNimxfsCw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=_4xNimxfsCw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 04:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/code-for-creating-Routine/m-p/2311471#M82507</guid>
      <dc:creator>st806p</dc:creator>
      <dc:date>2020-06-24T04:08:03Z</dc:date>
    </item>
  </channel>
</rss>

