<?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: cyclic sequence number generation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211214#M9331</link>
    <description>&lt;P&gt;thank you for your valuable answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here i need two sequence column&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Req: i need to generate two sequence no as &amp;nbsp;below as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;seaqno, seqno&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BIA00000000051070UPAULINA&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SVA00000000051070S000009003RESFee&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SVA00000000051070S000009003RESSupply&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;1 &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MTA00000000051070S000009003M000004576EL&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIA00000000091687UJACKSON&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SVA00000000091687S000001365RESFee&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SVA00000000091687S000001365RESSupply&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MTA00000000091687S000001365M000001772E&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here i achieved second sequence no by using numeric.sequence("s1,1,1) function in tmap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you please tell me for the first seqno&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 09:29:36 GMT</pubDate>
    <dc:creator>Mkrishna</dc:creator>
    <dc:date>2017-04-19T09:29:36Z</dc:date>
    <item>
      <title>cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211207#M9324</link>
      <description>&lt;P&gt;i have to load a file with header detail and footer record in to a single file but when we load the records separate sequence number should be created for header and detail record, how can we achieve this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;example source&lt;/P&gt; 
&lt;P&gt;BIA00000000051070UPAULINA&lt;BR /&gt;SVA00000000051070S000009003RESFee&lt;BR /&gt;SVA00000000051070S000009003RESSupply&lt;BR /&gt;MTA00000000051070S000009003M000004576EL&lt;BR /&gt;BIA00000000091687UJACKSON&lt;BR /&gt;SVA00000000091687S000001365RESFee&lt;BR /&gt;SVA00000000091687S000001365RESSupply&lt;BR /&gt;MTA00000000091687S000001365M000001772E&lt;/P&gt; 
&lt;P&gt;Here BI is header and sva is detail ,mat is footer records&lt;/P&gt; 
&lt;P&gt;Req: i need to generate two sequence no as &amp;nbsp;below as&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;seaqno&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIA00000000051070UPAULINA&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 1 1 &amp;nbsp; &amp;nbsp; SVA00000000051070S000009003RESFee&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 1 2 &amp;nbsp; &amp;nbsp; SVA00000000051070S000009003RESSupply&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;1 3 &amp;nbsp; &amp;nbsp; MTA00000000051070S000009003M000004576EL&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIA00000000091687UJACKSON&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 1 &amp;nbsp; &amp;nbsp; SVA00000000091687S000001365RESFee&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 2 &amp;nbsp; &amp;nbsp; SVA00000000091687S000001365RESSupply&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2&amp;nbsp;3 &amp;nbsp; &amp;nbsp; MTA00000000091687S000001365M000001772E&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 08:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211207#M9324</guid>
      <dc:creator>Mkrishna</dc:creator>
      <dc:date>2017-04-18T08:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211208#M9325</link>
      <description>&lt;P&gt;You can do this by providing something unique for each header as the name of the sequence. Using the code below, the sequence will be reset every time the headerKey value changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Numeric.sequence(headerKey,1, 1)&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2017 09:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211208#M9325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-18T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211209#M9326</link>
      <description>&lt;P&gt;hi thank you for your valuable solutions,&lt;/P&gt;
&lt;P&gt;can you just explain it please how can we achieve this , because iam also using the same funtions in tmap as :&lt;/P&gt;
&lt;PRE&gt;Numeric.sequence(headerKey,1, 1)&lt;/PRE&gt;
&lt;P&gt;here iam getting only the sequence number for all the rows as 1.2...3.4..5..6..7..............&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211209#M9326</guid>
      <dc:creator>Mkrishna</dc:creator>
      <dc:date>2017-04-18T12:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211210#M9327</link>
      <description>&lt;P&gt;do You want have single sequence column:&lt;BR /&gt;1&lt;BR /&gt;11&lt;BR /&gt;12&lt;BR /&gt;2&lt;BR /&gt;21&lt;BR /&gt;&lt;BR /&gt;or 2 columns&lt;BR /&gt;1,&lt;BR /&gt;1,1&lt;BR /&gt;1,2&lt;BR /&gt;2&lt;BR /&gt;2,1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;generally You can use tJavaFlex and check for Footer&lt;BR /&gt;if row not a footer - use stored number for 1st digit and sequence for 2nd&lt;BR /&gt;if row is footer - change number for 1st and reset 2nd&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Logic for both the same, just in case of single column need more math&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211210#M9327</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-04-18T12:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211211#M9328</link>
      <description>&lt;P&gt;OK, your data looks like this.....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;BIA00000000051070UPAULINA
SVA00000000051070S000009003RESFee
SVA00000000051070S000009003RESSupply
MTA00000000051070S000009003M000004576EL
BIA00000000091687UJACKSON
SVA00000000091687S000001365RESFee
SVA00000000091687S000001365RESSupply
MTA00000000091687S000001365M000001772E&lt;/PRE&gt; 
&lt;P&gt;The BIA prefixed values are the header rows, the SVA values are the details and the MTA values are the footers. Now it looks like you wish to include your footer rows in this sequence count from your example. Is this the case? Also, I am assuming that you can control the order of this data. If this is the case, you can use this tutorial (&lt;A href="https://www.rilhia.com/quicktips/quick-tip-compare-row-value-against-value-previous-row" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/quicktips/quick-tip-compare-row-value-against-value-previous-row&lt;/A&gt;) to show you how you can keep track of your header row indicator (the BIA field value) between rows. You would use this value as the headerKey&amp;nbsp;with the following code....&lt;/P&gt; 
&lt;PRE&gt;Numeric.sequence(headerKey,1, 1)&lt;/PRE&gt; 
&lt;P&gt;When it comes to the sequence per header row, you can also use the tutorial for this. Every time the header changes all you need to do is to increment a count by 1 yourself in a&amp;nbsp;tMap variable.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211211#M9328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-18T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211212#M9329</link>
      <description>&lt;P&gt;Hi Mahadeva,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you are looking for the following output.&lt;/P&gt;
&lt;P&gt;Starting job job_CyclicSequence at 09:28 18/04/2017.&lt;/P&gt;
&lt;P&gt;[statistics] connecting to socket on port 3689&lt;BR /&gt;[statistics] connected&lt;BR /&gt;.-------+-------+---------------------------------------.&lt;BR /&gt;| tLogRow_1 |&lt;BR /&gt;|=------+-------+--------------------------------------=|&lt;BR /&gt;|HDR_SEQ|DTL_SEQ|ID |&lt;BR /&gt;|=------+-------+--------------------------------------=|&lt;BR /&gt;|1 |null |BIA00000000051070UPAULINA |&lt;BR /&gt;|1 |1 |SVA00000000051070S000009003RESFee |&lt;BR /&gt;|1 |2 |SVA00000000051070S000009003RESSupply |&lt;BR /&gt;|1 |3 |MTA00000000051070S000009003M000004576EL|&lt;BR /&gt;|2 |null |BIA00000000091687UJACKSON |&lt;BR /&gt;|2 |1 |SVA00000000091687S000001365RESFee |&lt;BR /&gt;|2 |2 |SVA00000000091687S000001365RESSupply |&lt;BR /&gt;|2 |3 |MTA00000000091687S000001365M000001772E |&lt;BR /&gt;'-------+-------+---------------------------------------'&lt;/P&gt;
&lt;P&gt;[statistics] disconnected&lt;BR /&gt;Job job_CyclicSequence ended at 09:28 18/04/2017. [exit code=0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used tFileinputDelimited--&amp;gt; tMap--&amp;gt;tLogRow components. Used variable in tMap component to generate seq for Header and Footer. I am not able to provide screen shot here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Veeru&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 15:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211212#M9329</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2017-04-18T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211213#M9330</link>
      <description>&lt;P&gt;Hi thank you for your answers...........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here i achieved sequence for footer records like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1 2 3 &amp;nbsp; 123 by using numeric.sequence(s1,1,1) &amp;nbsp;function in tmap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but now i need to generate for header 111 &amp;nbsp;222 333.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how did you achieved in tmap can you show me please&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 08:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211213#M9330</guid>
      <dc:creator>Mkrishna</dc:creator>
      <dc:date>2017-04-19T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211214#M9331</link>
      <description>&lt;P&gt;thank you for your valuable answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here i need two sequence column&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Req: i need to generate two sequence no as &amp;nbsp;below as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;seaqno, seqno&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BIA00000000051070UPAULINA&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SVA00000000051070S000009003RESFee&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SVA00000000051070S000009003RESSupply&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;1 &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MTA00000000051070S000009003M000004576EL&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIA00000000091687UJACKSON&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SVA00000000091687S000001365RESFee&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SVA00000000091687S000001365RESSupply&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MTA00000000091687S000001365M000001772E&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here i achieved second sequence no by using numeric.sequence("s1,1,1) function in tmap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you please tell me for the first seqno&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211214#M9331</guid>
      <dc:creator>Mkrishna</dc:creator>
      <dc:date>2017-04-19T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211215#M9332</link>
      <description>&lt;P&gt;You can do this by extrapolating a little from the tutorial I sent you (&lt;A href="https://www.rilhia.com/quicktips/quick-tip-compare-row-value-against-value-previous-row" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/quicktips/quick-tip-compare-row-value-against-value-previous-row&lt;/A&gt;). In the "order_type" variable section we are identifying whether the order is an&amp;nbsp;&lt;SPAN&gt;"Amendment Order" or an&amp;nbsp;"Original Order". In terms of your example you can use this to identify a "new section" (requiring a new number) or an "existing section" (requiring reuse of the last number).&lt;BR /&gt;&lt;BR /&gt;To achieve this simply create an integer tMap variable called "count" with the logic (assuming "order_type" is changed to "section")....&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;Var.section.compareToIgnoreCase("new section")==0 ? Var.count++ : Var.count&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;....then use your "count" variable to populate your first sequence. Ensure that you set "count" to be Not Nullable. This should do it for you.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211215#M9332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211216#M9333</link>
      <description>&lt;P&gt;The job flow is like below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tFileInputDelimited--&amp;gt; tMap--&amp;gt;tLogRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Data:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Src:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;COL1&lt;/STRONG&gt;&lt;BR /&gt;BIA00000000051070UPAULINA&lt;BR /&gt;SVA00000000051070S000009003RESFee&lt;BR /&gt;SVA00000000051070S000009003RESSupply&lt;BR /&gt;MTA00000000051070S000009003M000004576EL&lt;BR /&gt;BIA00000000091687UJACKSON&lt;BR /&gt;SVA00000000091687S000001365RESFee&lt;BR /&gt;SVA00000000091687S000001365RESSupply&lt;BR /&gt;MTA00000000091687S000001365M000001772E&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Component&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tMap:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;row1:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;COL1&lt;/STRONG&gt;&lt;BR /&gt;BIA00000000051070UPAULINA&lt;BR /&gt;SVA00000000051070S000009003RESFee&lt;BR /&gt;SVA00000000051070S000009003RESSupply&lt;BR /&gt;MTA00000000051070S000009003M000004576EL&lt;BR /&gt;BIA00000000091687UJACKSON&lt;BR /&gt;SVA00000000091687S000001365RESFee&lt;BR /&gt;SVA00000000091687S000001365RESSupply&lt;BR /&gt;MTA00000000091687S000001365M000001772E&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Variables:&lt;/STRONG&gt;&lt;BR /&gt;HDR_SEQ--&amp;gt; Int--&amp;gt; StringHandling.LEFT(row1.COL1,3).equals("BIA")?(Relational.ISNULL(Var.PRE_HDR_SEQ)?1:Var.PRE_HDR_SEQ+1):Var.PRE_HDR_SEQ&lt;BR /&gt;PRE_HDR_SEQ--&amp;gt;int--&amp;gt;Var.HDR_SEQ&lt;/P&gt; 
&lt;P&gt;DTL_SEQ--&amp;gt;int--&amp;gt;StringHandling.LEFT(row1.COL1,3).equals("BIA")?null&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;Relational.ISNULL(Var.PRE_DTL_SEQ)?1:Var.PRE_DTL_SEQ+1)&lt;BR /&gt;PRE_DTL_SEQ--&amp;gt;int--&amp;gt;Var.DTL_SEQ&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;output:&lt;/STRONG&gt;&lt;BR /&gt;HDR_SEQ--&amp;gt;Var.HDR_SEQ&lt;BR /&gt;DTL_SEQ--&amp;gt;Var.DTL_SEQ&lt;BR /&gt;ID--&amp;gt; row1.COL1&lt;/P&gt; 
&lt;P&gt;.-------+-------+---------------------------------------.&lt;BR /&gt;| Target_Data |&lt;BR /&gt;|=------+-------+--------------------------------------=|&lt;BR /&gt;|HDR_SEQ|DTL_SEQ|ID |&lt;BR /&gt;|=------+-------+--------------------------------------=|&lt;BR /&gt;|1 |null |BIA00000000051070UPAULINA |&lt;BR /&gt;|1 |1 |SVA00000000051070S000009003RESFee |&lt;BR /&gt;|1 |2 |SVA00000000051070S000009003RESSupply |&lt;BR /&gt;|1 |3 |MTA00000000051070S000009003M000004576EL|&lt;BR /&gt;|2 |null |BIA00000000091687UJACKSON |&lt;BR /&gt;|2 |1 |SVA00000000091687S000001365RESFee |&lt;BR /&gt;|2 |2 |SVA00000000091687S000001365RESSupply |&lt;BR /&gt;|2 |3 |MTA00000000091687S000001365M000001772E |&lt;BR /&gt;'-------+-------+---------------------------------------'&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211216#M9333</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2017-04-19T12:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211217#M9334</link>
      <description>&lt;P&gt;Hi rhall , thank you for your answers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here i did the same things in the following way but i am getting error , can you suggest my where i did a mistake&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Var.Prev_row.compareToIgnoreCase(row1.Account_no)==0? Var.Count1:Var.Count+1 ..... ....integer&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row1.Account_no = Var.Prev_row ......string&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0=Var.Count ......integer&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Var.Count= Var.Count1 ..... integer&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 07:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211217#M9334</guid>
      <dc:creator>Mkrishna</dc:creator>
      <dc:date>2017-04-20T07:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211218#M9335</link>
      <description>&lt;P&gt;What error did you get?&lt;BR /&gt;Can you post a screenshot of your configuration as well?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 10:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211218#M9335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-20T10:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211219#M9336</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hi rhall,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thank you for your answers , now i got proper output&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2017 17:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211219#M9336</guid>
      <dc:creator>Mkrishna</dc:creator>
      <dc:date>2017-04-22T17:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211220#M9337</link>
      <description>&lt;P&gt;Hi vboppudi,&lt;/P&gt;&lt;P&gt;thank you for your answers , i got a proper output .&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 08:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211220#M9337</guid>
      <dc:creator>Mkrishna</dc:creator>
      <dc:date>2017-04-24T08:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211221#M9338</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have to generate the sequnce numbers for each record with tJava, tJavaFlex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Jaineesh.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 09:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211221#M9338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T09:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic sequence number generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211222#M9339</link>
      <description>Numeric.sequence is here for this purpose</description>
      <pubDate>Wed, 06 Dec 2017 11:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cyclic-sequence-number-generation/m-p/2211222#M9339</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-12-06T11:18:46Z</dc:date>
    </item>
  </channel>
</rss>

