<?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 Check day and run number in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Check-day-and-run-number/m-p/2216402#M12415</link>
    <description>&lt;P&gt;I have talend job that runs twice a day daily. It generates a new output file everyday for every run. Filename stays the same.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I would like to do is develop a check within the job that checks for:&lt;/P&gt; 
&lt;P&gt;1. Is it Saturday&lt;/P&gt; 
&lt;P&gt;2. Is this run number 2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If both conditions are then execute another subjob that archives the file&amp;nbsp; produced to a table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have used the IF condition before however I am not sure how to check what day it is? and how to enumerate the job run number (I am guessing I can log that prior to job run in a table and then check against that)?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thoughts?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:50:20 GMT</pubDate>
    <dc:creator>talendstar</dc:creator>
    <dc:date>2024-11-16T04:50:20Z</dc:date>
    <item>
      <title>Check day and run number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-day-and-run-number/m-p/2216402#M12415</link>
      <description>&lt;P&gt;I have talend job that runs twice a day daily. It generates a new output file everyday for every run. Filename stays the same.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I would like to do is develop a check within the job that checks for:&lt;/P&gt; 
&lt;P&gt;1. Is it Saturday&lt;/P&gt; 
&lt;P&gt;2. Is this run number 2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If both conditions are then execute another subjob that archives the file&amp;nbsp; produced to a table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have used the IF condition before however I am not sure how to check what day it is? and how to enumerate the job run number (I am guessing I can log that prior to job run in a table and then check against that)?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thoughts?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-day-and-run-number/m-p/2216402#M12415</guid>
      <dc:creator>talendstar</dc:creator>
      <dc:date>2024-11-16T04:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Check day and run number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-day-and-run-number/m-p/2216403#M12416</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; To identify the current day, the best component is to use a tRowgenerator. Store the data output from this component to a context variable and use it in necessary condition check like within Run If flows.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 629px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6py.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139526i1A516A71820D5797/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6py.png" alt="0683p000009M6py.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For the second query, you will log the previous run information to a table each time job is running. Then you can count the processing count easily.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Coming to the details of the tRowGenerator, please refer the screenshots 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: 788px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6q8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136599iD2A86A955F961273/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6q8.png" alt="0683p000009M6q8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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="0683p000009M6gO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143504iEC44F2DB20377395/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6gO.png" alt="0683p000009M6gO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope I answered your query &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Please spare a second to mark the topic as resolved.&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;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 18:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-day-and-run-number/m-p/2216403#M12416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T18:14:42Z</dc:date>
    </item>
  </channel>
</rss>

