<?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: sequence in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197753#M1372</link>
    <description>please provide one example job design&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Nov 2018 04:23:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-30T04:23:14Z</dc:date>
    <item>
      <title>sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197750#M1369</link>
      <description>&lt;P&gt;my requirement is&amp;nbsp; i created two output flows in tmap&amp;nbsp; each flow sequence generated like("s1",1,1)i want 1-6 in first(6 records are there)&lt;/P&gt;&lt;P&gt;another flow also ("s1",1,1)7-10 in this( 3 records in this)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 17:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197750#M1369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-29T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197751#M1370</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;You can achieve this Auto-Increment in tMap.&lt;/P&gt; 
&lt;P&gt;Please create a variable (var1) with this expression :Var.var1==0 || Var.var1&amp;gt;=6 ? 1 : Var.var1+1&lt;/P&gt; 
&lt;P&gt;Let us know if it is OK with you.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;
 &lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt; 
&lt;H2 class="message-subject"&gt;&amp;nbsp;&lt;/H2&gt;</description>
      <pubDate>Fri, 30 Nov 2018 03:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197751#M1370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T03:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197752#M1371</link>
      <description>could please explain in detail</description>
      <pubDate>Fri, 30 Nov 2018 04:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197752#M1371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T04:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197753#M1372</link>
      <description>please provide one example job design&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2018 04:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197753#M1372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T04:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197754#M1373</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I will create a demo job and them come back to you as soon as I can.&lt;/P&gt; 
&lt;P&gt;best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197754#M1373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T06:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197755#M1374</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Could you please take a look at my screenshots for details?&lt;/P&gt; 
&lt;P&gt;Feel free to let us know if it is what you are looking for.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 952px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0ze.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137574i73AB9F5D9B41C1AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0ze.png" alt="0683p000009M0ze.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M19O.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135605iADA9A4650DE7487B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M19O.png" alt="0683p000009M19O.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 845px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1Au.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129705iD84D376015DF1FA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1Au.png" alt="0683p000009M1Au.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197755#M1374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T07:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197756#M1375</link>
      <description>actually i want 7 after 6</description>
      <pubDate>Mon, 10 Dec 2018 09:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197756#M1375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-10T09:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197757#M1376</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOtZAAW"&gt;@rchinta&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; If you are looking for second sequence to start with last number of first sequence, below are the steps.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;a) Generate the first sequence in normal fashion eg&amp;nbsp;&lt;SPAN&gt;("s1",1,1)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;b) Pick the last value of current sequence (or after tmap, do a max of sequence id) and store in a context variable (&lt;SPAN&gt;context.last_seq_max_number)&lt;/SPAN&gt; with integer data type&lt;/P&gt; 
&lt;P&gt;c) In the next sequence, use&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;("s2",context.last_seq_max_number,1)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Now the second sequence will start with 7.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Hope I have answered your query. I would suggest you to create a sample job and test the steps yourself to practice your learnings. Could you please mark the topic as resolved since the query has been answered now? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Warm regards,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Nikhil Thampi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sequence/m-p/2197757#M1376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-10T10:21:29Z</dc:date>
    </item>
  </channel>
</rss>

