<?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: Retrieving and saving last sequence number in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241974#M28950</link>
    <description>thanks for your suggestion, but my main problem is not saving the value since I can retrieve it by SQL statement &lt;BR /&gt;I'm quite new to Talend so my problem is that I don't know how to pass a result of query:&lt;BR /&gt;SELECT max(qequence_num) from Fact05 &lt;BR /&gt;to the column:&lt;BR /&gt;Numeric.sequence("Last_Sequence_Fact05",1,1) .&lt;BR /&gt;In general it is getting a value from a query and passing it to variable that could be used in other parts of the job.&lt;BR /&gt;c.</description>
    <pubDate>Fri, 14 Sep 2012 15:08:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-14T15:08:18Z</dc:date>
    <item>
      <title>Retrieving and saving last sequence number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241972#M28948</link>
      <description>Hi,
&lt;BR /&gt;I'm using Talend's sequence number and pass following value to the column:
&lt;BR /&gt;Numeric.sequence("Last_Sequence_Fact05",1,1) .
&lt;BR /&gt;How do I pass the value to variable Last_Sequence_Fact05 ?
&lt;BR /&gt;Thanks
&lt;BR /&gt;C</description>
      <pubDate>Thu, 13 Sep 2012 16:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241972#M28948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-13T16:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving and saving last sequence number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241973#M28949</link>
      <description>The only way is to save the last number and in the next job start you have to setup the sequence with Numeric.sequence("Last_Sequence_Fact05", context.lastNumber, 1) 
&lt;BR /&gt;But I would use a database sequence instead of job local memory sequence!</description>
      <pubDate>Fri, 14 Sep 2012 02:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241973#M28949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-14T02:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving and saving last sequence number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241974#M28950</link>
      <description>thanks for your suggestion, but my main problem is not saving the value since I can retrieve it by SQL statement &lt;BR /&gt;I'm quite new to Talend so my problem is that I don't know how to pass a result of query:&lt;BR /&gt;SELECT max(qequence_num) from Fact05 &lt;BR /&gt;to the column:&lt;BR /&gt;Numeric.sequence("Last_Sequence_Fact05",1,1) .&lt;BR /&gt;In general it is getting a value from a query and passing it to variable that could be used in other parts of the job.&lt;BR /&gt;c.</description>
      <pubDate>Fri, 14 Sep 2012 15:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241974#M28950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-14T15:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving and saving last sequence number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241975#M28951</link>
      <description>hi,&lt;BR /&gt;Last_Sequence_Fact05 is the name of your sequence&lt;BR /&gt;use globalMap to store(put)  value and get it later.&lt;BR /&gt;syntax&lt;BR /&gt;&lt;PRE&gt;(Integer)globalMap.get("your_key_name")&lt;/PRE&gt;&lt;BR /&gt;so in your tMap it could be something like&lt;BR /&gt;&lt;PRE&gt;Numeric.sequence("Last_Sequence_Fact05",(Integer)globalMap.get("your_key_name"),1)&lt;/PRE&gt;&lt;BR /&gt;Ps : with Mysql you've got tMysqlLastInserId&lt;BR /&gt;regards</description>
      <pubDate>Sat, 15 Sep 2012 19:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieving-and-saving-last-sequence-number/m-p/2241975#M28951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-15T19:07:58Z</dc:date>
    </item>
  </channel>
</rss>

