<?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: tMap Pad String with Leading 0 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296947#M69565</link>
    <description>&lt;P&gt;It works Perfectly may i get Explanation of&amp;nbsp;("%1$9s",) this&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 15:02:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-01T15:02:30Z</dc:date>
    <item>
      <title>tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296933#M69551</link>
      <description>&lt;P&gt;I have been wrestling with this all day. &amp;nbsp;StringHandling.LPAD(row2.SAP_ID, 6, "0") &amp;nbsp;tests without error in the Expression Builder however isn't inserting the leading 0's in my field. &amp;nbsp;Any suggestions?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 18:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296933#M69551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T18:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296934#M69552</link>
      <description>Strange! Did you check using tLogRow or something else? Can you share your component configuration?</description>
      <pubDate>Fri, 11 Aug 2017 20:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296934#M69552</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-11T20:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296935#M69553</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lw3J.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154293i6F3CC1E3F815682E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lw3J.png" alt="0683p000009Lw3J.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296935#M69553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T20:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296936#M69554</link>
      <description>&lt;P&gt;Pad methods are unavailable from TOS 6.4.1, so I can't try but you can do what you want with:&lt;/P&gt;
&lt;PRE&gt;StringHandling.RIGHT("000000" + row2.code, 6) &lt;/PRE&gt;
&lt;P&gt;It works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296936#M69554</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-11T20:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296937#M69555</link>
      <description>&lt;P&gt;Alllllll day......... &amp;nbsp; &amp;nbsp;Thank you so much!!!!! &amp;nbsp; That did it!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 21:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296937#M69555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T21:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296938#M69556</link>
      <description>You're welcome.&lt;BR /&gt;Please, don't forget to mark the solution as accepted.&lt;BR /&gt;Kudos are also accepted.</description>
      <pubDate>Fri, 11 Aug 2017 21:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296938#M69556</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-11T21:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296939#M69557</link>
      <description>&lt;P&gt;other solution - is add to project routines library StringUtils from Exchange (plus dependencies - Apache common-lang-2.6)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it include many useful function and handle null values more proper than some Talend functions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; * StringUtils.leftPad(null, *, *)     = null	
 * StringUtils.leftPad("", 3, 'z')     = "zzz"	
 * StringUtils.leftPad("bat", 3, 'z')  = "bat"	
 * StringUtils.leftPad("bat", 5, 'z')  = "zzbat"	
 * StringUtils.leftPad("bat", 1, 'z')  = "bat"	
 * StringUtils.leftPad("bat", -1, 'z') = "bat"	&lt;/PRE&gt;
&lt;P&gt;and use it in tMap&lt;/P&gt;
&lt;P&gt;it work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 07:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296939#M69557</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-08-12T07:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296940#M69558</link>
      <description>&lt;P&gt;i dont know how much zeros i want to add ,if the account number length is 11 than i want to load otherwise i want to add zeros prefix the account number ??how to solve this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 10:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296940#M69558</guid>
      <dc:creator>Vijay_K_N</dc:creator>
      <dc:date>2019-09-22T10:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296941#M69559</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQNDAA4"&gt;@lli&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A quick solution is as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 794px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ZY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144711i1590F14007B11BF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ZY.png" alt="0683p000009M7ZY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ew.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143306i896B229C37730E05/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ew.png" alt="0683p000009M7ew.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The function used is as shown below where 11 is the length of the output string. If its less than 11, zeros will be padded to the left.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;String.format("%1$11s", row1.data).replace(' ', '0')&lt;/PRE&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 04:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296941#M69559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-25T04:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296942#M69560</link>
      <description>&lt;P&gt;where is the talend.format option in tmap (string handling&amp;nbsp; i am using talend 7.1)&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQNDAA4"&gt;@lli&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;A quick solution is as shown below.&lt;/P&gt; 
 &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 794px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ZY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144711i1590F14007B11BF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ZY.png" alt="0683p000009M7ZY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ew.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143306i896B229C37730E05/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ew.png" alt="0683p000009M7ew.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;The function used is as shown below where 11 is the length of the output string. If its less than 11, zeros will be padded to the left.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;PRE&gt;String.format("%1$11s", row1.data).replace(' ', '0')&lt;/PRE&gt; 
 &lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
 &lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 05:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296942#M69560</guid>
      <dc:creator>Vijay_K_N</dc:creator>
      <dc:date>2019-12-11T05:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296943#M69561</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQNDAA4"&gt;@lli&lt;/A&gt;&amp;nbsp;, you can do below way also.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;here&amp;nbsp;id column data type is string , 30 is length of string and 0 is the padding character.&lt;/P&gt; 
&lt;P&gt;StringHandling.LPAD(row3.id,30,"0")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 12:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296943#M69561</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-12-11T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296944#M69562</link>
      <description>&lt;P&gt;in talend 7.1 i didn't find lpad function in string handling category&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 04:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296944#M69562</guid>
      <dc:creator>Vijay_K_N</dc:creator>
      <dc:date>2019-12-13T04:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296945#M69563</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQNDAA4"&gt;@lli&lt;/A&gt;&amp;nbsp;, you can find this in under Code&amp;gt;&amp;gt;Routines&amp;gt;&amp;gt;system&amp;gt;&amp;gt;StingHandling.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 05:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296945#M69563</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-12-13T05:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296946#M69564</link>
      <description>&lt;P&gt;i followed ur suggestions but when i open the string handling i got program window in that every string handling function is there ...so u mean i can use ryt ...so why in tmap they are not available ???&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 14:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296946#M69564</guid>
      <dc:creator>Vijay_K_N</dc:creator>
      <dc:date>2019-12-14T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296947#M69565</link>
      <description>&lt;P&gt;It works Perfectly may i get Explanation of&amp;nbsp;("%1$9s",) this&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 15:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296947#M69565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-01T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Pad String with Leading 0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296948#M69566</link>
      <description>&lt;P&gt;It works Perfectly may i get Explanation of&amp;nbsp;("%1$9s",) this&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 15:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Pad-String-with-Leading-0/m-p/2296948#M69566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-01T15:02:30Z</dc:date>
    </item>
  </channel>
</rss>

