<?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: Parallel job - getting the statistics in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332314#M101210</link>
    <description>Hi Prince,&lt;BR /&gt;Thanks a lot for explaining.&lt;BR /&gt;So, should the flow be tmssqlinput --&amp;gt; tmap --&amp;gt; tmysqloutput(maintable) -- &amp;gt; tfixedflowinput --&amp;gt; tmysqloutput(jobtracker)&lt;BR /&gt;The same sequence will be repeated 15 times for different tables. All 15 jobs will try to insert into jobtracker, will there not be any lock issues?&amp;nbsp;&lt;BR /&gt;Also, how do I get the execution time for each job?&lt;BR /&gt;Thanks&lt;BR /&gt;Rathi</description>
    <pubDate>Wed, 15 Feb 2017 11:26:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-15T11:26:41Z</dc:date>
    <item>
      <title>Parallel job - getting the statistics</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332311#M101207</link>
      <description>&lt;P&gt;Hi, I have a main job when executed, runs 15 jobs in parallel. Each job has a table to write (insert or update) from sql server to mysql.&lt;BR /&gt;I want to get the execution time of each job and the number of rows that were affected. I want the table_name,inserted_rows, updated_rows,job_completion_time&lt;BR /&gt;So I run this job 4 times in a day. And the data in this log table must have information for every run&lt;BR /&gt;I am using TOS - 6.1.1&lt;BR /&gt;Any ideas on how I can achieve this would be of &amp;nbsp;great help&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Rathi&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 07:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332311#M101207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-15T07:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel job - getting the statistics</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332312#M101208</link>
      <description>Hi Rathi,
&lt;BR /&gt;Create a table with columns table_name,inserted_rows, updated_rows,job_completion_tim Asume the table name to be "JobTracker".
&lt;BR /&gt;Create an autoincrement column in the JobTracker table to capture the deatils of the job with an id assume jobtrackerid.
&lt;BR /&gt;
&lt;BR /&gt;For all the outputcomponents u would have global variable available , just click on drop down of the output component in the outline
&lt;BR /&gt;which would be available on the bottom left.The you would find the global variable like NBLine_Inserted etc.
&lt;BR /&gt;Just drag and drop to the required field to get the recoreds inserted or updated.
&lt;BR /&gt;
&lt;BR /&gt;at end of each job populate the details into the table.
&lt;BR /&gt;
&lt;BR /&gt;tfixedflowinput ---&amp;gt; tmysqloutput(JobTracker Table).
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Prince
&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Wed, 15 Feb 2017 11:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332312#M101208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-15T11:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel job - getting the statistics</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332313#M101209</link>
      <description>For the execution time at start of each job create a global variable var1 (var1 =&amp;nbsp;TalendDate.getCurrentDate()) &amp;nbsp;to store the talend current datetime.&amp;nbsp;&lt;BR /&gt;similarly at the end of each job apply the below logic.&lt;BR /&gt;var1 =&amp;nbsp;TalendDate.getCurrentDate() - var1;</description>
      <pubDate>Wed, 15 Feb 2017 11:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332313#M101209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-15T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel job - getting the statistics</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332314#M101210</link>
      <description>Hi Prince,&lt;BR /&gt;Thanks a lot for explaining.&lt;BR /&gt;So, should the flow be tmssqlinput --&amp;gt; tmap --&amp;gt; tmysqloutput(maintable) -- &amp;gt; tfixedflowinput --&amp;gt; tmysqloutput(jobtracker)&lt;BR /&gt;The same sequence will be repeated 15 times for different tables. All 15 jobs will try to insert into jobtracker, will there not be any lock issues?&amp;nbsp;&lt;BR /&gt;Also, how do I get the execution time for each job?&lt;BR /&gt;Thanks&lt;BR /&gt;Rathi</description>
      <pubDate>Wed, 15 Feb 2017 11:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332314#M101210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-15T11:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel job - getting the statistics</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332315#M101211</link>
      <description>for the exection time:&lt;BR /&gt;tjava1---&amp;gt;on subjob ok ---&amp;gt;Main JOb -----&amp;gt;onSubjobOk---&amp;gt;tjava2.---&amp;gt;tfixedflow----&amp;gt;JobTracker&lt;BR /&gt;In tJava1:Create a variable V1 = TalendDate.getCurrentDate()&lt;BR /&gt;In tJava2:V1 = TalendDate.getCurrentDate()-V1&lt;BR /&gt;In tFixedflowinput in the column job_completion_tim privide context.V1&lt;BR /&gt;Regarding locks no it would nt .&lt;BR /&gt;please don t forget to &amp;nbsp;close the JobTracker connection&lt;BR /&gt;example: tmysqlConnection --&amp;gt; tfixedflowinput---&amp;gt;jobtracker ---&amp;gt;tmysqlcommit(Please check the checkbox close connection)</description>
      <pubDate>Wed, 15 Feb 2017 13:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332315#M101211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-15T13:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel job - getting the statistics</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332316#M101212</link>
      <description>Hi,&lt;BR /&gt;I tried creating the job as you said, but V1 was not recognized globally, so used a tsetglobalvar.&amp;nbsp;&lt;BR /&gt;I was reading and came across tstatscatcher,tflowmetercatcher, tlogcatcher. What method must I opt for , these components or the method you have suggested?&lt;BR /&gt;Thanks&lt;BR /&gt;Rathi</description>
      <pubDate>Thu, 16 Feb 2017 12:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parallel-job-getting-the-statistics/m-p/2332316#M101212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-16T12:43:30Z</dc:date>
    </item>
  </channel>
</rss>

