<?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: [resolved] [R] Aphanumic qunc in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254869#M37751</link>
    <description>Hi Alevy
&lt;BR /&gt;I'm not sure to understand you code; you substitute the value 9 with A in certain position of the initial string.
&lt;BR /&gt;But if in my sequence I have the number 10000 how it can transformed in A000?
&lt;BR /&gt;Besides you say that you sequence have maximum 1679615 values.
&lt;BR /&gt;If I use all the character from A to Z of the ASCII table on exclusion of the lower-case i can arrive just 736335=ZZZZ.
&lt;BR /&gt;Regards
&lt;BR /&gt;Alessandro</description>
    <pubDate>Sat, 05 Jan 2013 10:23:16 GMT</pubDate>
    <dc:creator>AlessandroCic</dc:creator>
    <dc:date>2013-01-05T10:23:16Z</dc:date>
    <item>
      <title>[resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254864#M37746</link>
      <description>Hi forum&lt;BR /&gt;Is there a simply way to generate an alphanumeric sequence like this?&lt;BR /&gt;0000&lt;BR /&gt;0001&lt;BR /&gt;.....&lt;BR /&gt;9999&lt;BR /&gt;A000&lt;BR /&gt;A001&lt;BR /&gt;....&lt;BR /&gt;A999&lt;BR /&gt;B000&lt;BR /&gt;.....&lt;BR /&gt;Z999&lt;BR /&gt;AA00&lt;BR /&gt;AA01&lt;BR /&gt;.....&lt;BR /&gt;AA99&lt;BR /&gt;AB00&lt;BR /&gt;.....&lt;BR /&gt;AZ99&lt;BR /&gt;BA00&lt;BR /&gt;.....&lt;BR /&gt;ZZZZ&lt;BR /&gt;Regards&lt;BR /&gt;Alessandro</description>
      <pubDate>Mon, 17 Sep 2012 15:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254864#M37746</guid>
      <dc:creator>AlessandroCic</dc:creator>
      <dc:date>2012-09-17T15:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254865#M37747</link>
      <description>Up.&lt;BR /&gt;I would like is to create a sequence &amp;gt; 9999 but I have only 4 digits.&lt;BR /&gt;Regards&lt;BR /&gt;Alessandro</description>
      <pubDate>Sat, 29 Sep 2012 15:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254865#M37747</guid>
      <dc:creator>AlessandroCic</dc:creator>
      <dc:date>2012-09-29T15:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254866#M37748</link>
      <description>If you're happy to use a more normal sequence (like hexadecimal but extended) it would be easier: 
&lt;BR /&gt;0000 
&lt;BR /&gt;0001 
&lt;BR /&gt;..... 
&lt;BR /&gt;0009 
&lt;BR /&gt;000A 
&lt;BR /&gt;000B 
&lt;BR /&gt;..... 
&lt;BR /&gt;000Z 
&lt;BR /&gt;0010 
&lt;BR /&gt;0011 
&lt;BR /&gt;..... 
&lt;BR /&gt;001Z 
&lt;BR /&gt;0020 
&lt;BR /&gt;..... 
&lt;BR /&gt;00ZZ 
&lt;BR /&gt;0100 
&lt;BR /&gt;..... 
&lt;BR /&gt;ZZZZ 
&lt;BR /&gt;But what exactly do you want to do with this sequence?</description>
      <pubDate>Sun, 30 Sep 2012 08:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254866#M37748</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-09-30T08:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254867#M37749</link>
      <description>Hi&lt;BR /&gt;Maybe a sequence like in your example it can be the solution.&lt;BR /&gt;How I can to do this?&lt;BR /&gt;It seems that the function "sequence" only works from 0 to 9 without alphabetic characters.&lt;BR /&gt;My sequence is a part of a code that I concatenate with other strings.&lt;BR /&gt;Regards&lt;BR /&gt;Alessandro</description>
      <pubDate>Sun, 30 Sep 2012 09:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254867#M37749</guid>
      <dc:creator>AlessandroCic</dc:creator>
      <dc:date>2012-09-30T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254868#M37750</link>
      <description>Create a user routine as follows (based on Numeric.sequence) but you can't control the start point or step. Note also that it loops back to "0000" if you exceed the maximum 1679615 values that can fit.
&lt;BR /&gt;
&lt;PRE&gt;public class MyRoutines {&lt;BR /&gt;	&lt;BR /&gt;	private static final java.util.Map&amp;lt;String, String&amp;gt; seq_Hash = new java.util.HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt;	&lt;BR /&gt;	public static String sequence(String seqName) {&lt;BR /&gt;		&lt;BR /&gt;		String currentValue = "0000";&lt;BR /&gt;		if (seq_Hash.containsKey(seqName)) {&lt;BR /&gt;			currentValue = seq_Hash.get(seqName);&lt;BR /&gt;		}&lt;BR /&gt;		char[] valueArray = currentValue.toCharArray();  &lt;BR /&gt;		for (int position=3; position&amp;gt;=0; position--) {&lt;BR /&gt;			if (valueArray &amp;lt; 'Z') {&lt;BR /&gt;				if (valueArray == '9') {&lt;BR /&gt;					valueArray = 'A';&lt;BR /&gt;				} else {&lt;BR /&gt;					valueArray++;&lt;BR /&gt;				}&lt;BR /&gt;				break;&lt;BR /&gt;			} else {&lt;BR /&gt;				valueArray = '0';&lt;BR /&gt;			}&lt;BR /&gt;		}&lt;BR /&gt;		seq_Hash.put(seqName,String.valueOf(valueArray));&lt;BR /&gt;		return String.valueOf(valueArray);&lt;BR /&gt;	}&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Oct 2012 14:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254868#M37750</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-10-01T14:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254869#M37751</link>
      <description>Hi Alevy
&lt;BR /&gt;I'm not sure to understand you code; you substitute the value 9 with A in certain position of the initial string.
&lt;BR /&gt;But if in my sequence I have the number 10000 how it can transformed in A000?
&lt;BR /&gt;Besides you say that you sequence have maximum 1679615 values.
&lt;BR /&gt;If I use all the character from A to Z of the ASCII table on exclusion of the lower-case i can arrive just 736335=ZZZZ.
&lt;BR /&gt;Regards
&lt;BR /&gt;Alessandro</description>
      <pubDate>Sat, 05 Jan 2013 10:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254869#M37751</guid>
      <dc:creator>AlessandroCic</dc:creator>
      <dc:date>2013-01-05T10:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254870#M37752</link>
      <description>My post on 30 Sep shows the sequence my code constructs, where each digit cycles from 0 to 9 then A and on to Z i.e. 36 values for each digit.  For example, 0010 in my sequence equates to 36 in decimal.  Maximum sequence value is 36^4-1 for ZZZZ.</description>
      <pubDate>Tue, 08 Jan 2013 13:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254870#M37752</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-01-08T13:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254871#M37753</link>
      <description>Hi forum 
&lt;BR /&gt;I have developed a function that made a relation from the number to the ascii code. 
&lt;BR /&gt;I'm sure that it can to be optimized (all contributes are accepted)!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
&lt;BR /&gt;I propose this: 
&lt;BR /&gt; 
&lt;PRE&gt;Var.sMod = null;&lt;BR /&gt;int iNumSeq = 0;&lt;BR /&gt;int iN1 = 0;&lt;BR /&gt;int iN2 = 0;&lt;BR /&gt;int iN3 = 0;&lt;BR /&gt;int iN4 = 0;&lt;BR /&gt;String s1;&lt;BR /&gt;char sL1;&lt;BR /&gt;char sL2;&lt;BR /&gt;char sL3;&lt;BR /&gt;char sL4;&lt;BR /&gt;//Nell'assegnazione converto il valore string in char&lt;BR /&gt;iNumSeq = Numeric.sequence(context.sTipProd,0,1);&lt;BR /&gt;if (iNumSeq &amp;lt; 10000) {&lt;BR /&gt;	Var.sMod = StringHandling.RIGHT("0000" + iNumSeq, 4);&lt;BR /&gt;} else if (iNumSeq &amp;gt; 9999 &amp;amp;&amp;amp; iNumSeq &amp;lt; 36000) {&lt;BR /&gt;	//Prelevo i caratteri in posizione 12&lt;BR /&gt;	s1 = StringHandling.LEFT("" + iNumSeq, 2);&lt;BR /&gt;	//Li converto nella lettera che andrò a sostituire&lt;BR /&gt;	sL1 = (char) (Integer.parseInt(s1) + 55);&lt;BR /&gt;	//Compongo la stringa alfa-numerica&lt;BR /&gt;	Var.sMod = "" + sL1 + StringHandling.RIGHT("000" + iNumSeq, 3);&lt;BR /&gt;} else if (iNumSeq &amp;gt; 35999 &amp;amp;&amp;amp; iNumSeq &amp;lt; 103600) {&lt;BR /&gt;	//Definisco l'incremento del primo carattere&lt;BR /&gt;	iN1 = (iNumSeq - 36000) / 2600;&lt;BR /&gt;	sL1 = (char) (iN1 + 65);&lt;BR /&gt;	//Definisco l'incremento del secondo carattere&lt;BR /&gt;	iN2 = ((iNumSeq - 36000) / 100) - iN1 * 26;&lt;BR /&gt;	sL2 = (char) (iN2 + 65);&lt;BR /&gt;	//Compongo la stringa alfa-numerica&lt;BR /&gt;	Var.sMod = "" + sL1 + sL2 + StringHandling.RIGHT("00" + iNumSeq, 2);&lt;BR /&gt;} else if (iNumSeq &amp;gt; 103599 &amp;amp;&amp;amp; iNumSeq &amp;lt; 279360) {&lt;BR /&gt;	//Definisco l'incremento del primo carattere&lt;BR /&gt;	iN1 = (iNumSeq - 103600) / 6760;&lt;BR /&gt;	sL1 = (char) (iN1 + 65);&lt;BR /&gt;	//Definisco l'incremento del secondo carattere&lt;BR /&gt;	iN2 = ((iNumSeq - 103600) / 260) - iN1 * 26;&lt;BR /&gt;	sL2 = (char) (iN2 + 65);&lt;BR /&gt;	//Definisco l'incremento del terzo carattere&lt;BR /&gt;	iN3 = ((iNumSeq - 103600) / 10) - iN2 * 26 - iN1 * 676;&lt;BR /&gt;	sL3 = (char) (iN3 + 65);&lt;BR /&gt;	//Compongo la stringa alfa-numerica&lt;BR /&gt;	Var.sMod = "" + sL1 + sL2 + sL3 + StringHandling.RIGHT("" + iNumSeq, 1);&lt;BR /&gt;} else if (iNumSeq &amp;gt; 279359 &amp;amp;&amp;amp; iNumSeq &amp;lt; 736336) {&lt;BR /&gt;	//Definisco l'incremento del primo carattere&lt;BR /&gt;	iN1 = (iNumSeq - 279360) / 17576;&lt;BR /&gt;	sL1 = (char) (iN1 + 65);&lt;BR /&gt;	//Definisco l'incremento del secondo carattere&lt;BR /&gt;	iN2 = ((iNumSeq - 279360) / 676) - iN1 * 26;&lt;BR /&gt;	sL2 = (char) (iN2 + 65);&lt;BR /&gt;	//Definisco l'incremento del terzo carattere&lt;BR /&gt;	iN3 = ((iNumSeq - 279360) / 26) - iN1 * 676 - iN2 * 26;&lt;BR /&gt;	sL3 = (char) (iN3 + 65);&lt;BR /&gt;	//Definisco l'incremento del quarto carattere&lt;BR /&gt;	iN4 = ((iNumSeq - 279360)) - iN1 * 17576 - iN2 * 676 - iN3 * 26;&lt;BR /&gt;	sL4 = (char) (iN4 + 65);	&lt;BR /&gt;	//Compongo la stringa alfa-numerica&lt;BR /&gt;	Var.sMod = "" + sL1 + sL2 + sL3 + sL4;&lt;BR /&gt;} else {&lt;BR /&gt;	Var.sMod = "#out";&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Alessandro</description>
      <pubDate>Sun, 27 Jan 2013 22:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254871#M37753</guid>
      <dc:creator>AlessandroCic</dc:creator>
      <dc:date>2013-01-27T22:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254872#M37754</link>
      <description>Yes, you can generate alphanumeric sequence like A0001, A0002, ...
&lt;BR /&gt; 
&lt;BR /&gt;Do these,
&lt;BR /&gt;1. Use Numeric-&amp;gt;sequece (from 99990001, increment by 1)
&lt;BR /&gt;2. Convert this field type to string using tConvertType
&lt;BR /&gt;3. Use tReplace to replace 9999s with A.
&lt;BR /&gt;It worked and I tested it.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Jagadish.</description>
      <pubDate>Thu, 07 Feb 2013 08:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254872#M37754</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-02-07T08:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [R] Aphanumic qunc</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254873#M37755</link>
      <description>Ok, but after Z9999 I want to have AA000 and to terminate the sequence with ZZZZZ.&lt;BR /&gt;I think that isn't possible with you solution...&lt;BR /&gt;Regards&lt;BR /&gt;Alessandro</description>
      <pubDate>Thu, 07 Feb 2013 20:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-R-Aphanumic-qunc/m-p/2254873#M37755</guid>
      <dc:creator>AlessandroCic</dc:creator>
      <dc:date>2013-02-07T20:20:35Z</dc:date>
    </item>
  </channel>
</rss>

