<?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: Write datetime end of a job in a variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247666#M32777</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Anyone have the solution ?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Sat, 11 Jan 2020 09:16:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-11T09:16:18Z</dc:date>
    <item>
      <title>Write datetime end of a job in a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247662#M32773</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Excuse me for my bad English, I'm French.&lt;BR /&gt;I will try to explain so say me if it's not clear for you.&lt;BR /&gt;&lt;BR /&gt;I have a table with a field "date" and a line can be modified. When a line is modified, the field "date" is changed.&lt;BR /&gt;&lt;BR /&gt;I have a job who is executed every day. This job gets data from my table. When the job is finished, I want to put the datetime of the end of my job in a variable. Before every launch of the job the file is deleted to create a new.&lt;BR /&gt;&lt;BR /&gt;I want to use this variable in my request SQL.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks you very much.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247662#M32773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Write datetime end of a job in a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247663#M32774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you trying to store the last run time of a job to a variable so that you can do delta data extraction operations? If that is the case, you can have a configuration or activity tracking table where you can store the last run time. Read the data from this table as the first step and assign to a context variable. Then use it for doing your business delta records processing. Once its completed, pick the last modified time of the latest record and store this value to the earlier context variable. In the next subjob, insert this value of context variable back to the configuration table to track the last processing time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; If your requirement is different, please share your job screenshots along with detailed description so that we will have better idea.&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247663#M32774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-10T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Write datetime end of a job in a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247664#M32775</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;I have this job :&lt;BR /&gt;&lt;BR /&gt;- Read the last end time of the job in a file (the first time I launch the job, I don't have this file)&lt;BR /&gt;- Get the data from a table A where the "date field" is&amp;nbsp;&amp;gt; end time of the job. So I must read the date of the file.&lt;BR /&gt;- Insert this data into a table B&lt;BR /&gt;- Delete the file and write the end time of the job in a file (with same name)&lt;BR /&gt;&lt;BR /&gt;And so on and so forth&lt;BR /&gt;&lt;BR /&gt;I don't want a table to put the end time of my job. I prefer a file but I don't know how to write into and read it to put into a variable to use it in my sql. The variable must be "global" because I want to use it in different jobs.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247664#M32775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-10T14:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Write datetime end of a job in a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247665#M32776</link>
      <description>I have this :
&lt;BR /&gt;
&lt;BR /&gt;Job 1 :
&lt;BR /&gt;tESBProviderRequest — tMap - tMySqlOutput (table « B »)
&lt;BR /&gt;
&lt;BR /&gt;This is my first job. It's a webservice who inserts data in my table « B »
&lt;BR /&gt;
&lt;BR /&gt;Job 2 :
&lt;BR /&gt;tMysqlInput (table « A ») — tMap - tEsbConsumer
&lt;BR /&gt;
&lt;BR /&gt;This is my second job. It's a job who gets the data from the table « A » and consumes the webservice of the job 1 to insert it in the table « B ». In the table « A », there is a field "date modification"
&lt;BR /&gt;
&lt;BR /&gt;I want :
&lt;BR /&gt;
&lt;BR /&gt;When the data are inserted into the table « B », I want to put the datetime end of the job into a file. When I get the data from the table « A » in my SQL request, I want only the data where the field "date modification" is higher than the date in the file.</description>
      <pubDate>Fri, 10 Jan 2020 15:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247665#M32776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-10T15:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Write datetime end of a job in a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247666#M32777</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Anyone have the solution ?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 11 Jan 2020 09:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247666#M32777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-11T09:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Write datetime end of a job in a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247667#M32778</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I’ve tried to do things, but I don’t know if the method is right.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend.PNG" style="width: 736px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Kq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137908iA7C60B4F53D410BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Kq.png" alt="0683p000009M9Kq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;- I created a file manuallly "Date" where I have a line "Date;2020-11-12 12:45:30"&lt;BR /&gt;- I read this file with "tFileInputDelimited"&lt;BR /&gt;- I modified the schema of "tFileInputDelimited" to create two varaible "key" and "value"&lt;BR /&gt;- I created a context variable "Date" and in my request SQL I used "context.date" in my where clause.&lt;BR /&gt;&lt;BR /&gt;It works but I don't know how to do after the "t_ESBConsumer_1".&amp;nbsp;&lt;BR /&gt;I want that when it is finished, I delete the file to create a new one with the same line but the value corresponds to the end date of execution of the job.&lt;BR /&gt;&lt;BR /&gt;I know I must use the function "TalendDate. formatDate("dd/MM/YYYYM HH:mm:ss",TalendDate. getCurrentDate());"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 15:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-datetime-end-of-a-job-in-a-variable/m-p/2247667#M32778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-12T15:29:35Z</dc:date>
    </item>
  </channel>
</rss>

