<?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: string and Big Decimal concatenate in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286814#M60436</link>
    <description>Hi,&lt;BR /&gt;Thank for replay.&lt;BR /&gt;Yes.&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;A;B;13.56;34.24&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Murali R</description>
    <pubDate>Fri, 18 Sep 2015 13:54:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-18T13:54:26Z</dc:date>
    <item>
      <title>string and Big Decimal concatenate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286812#M60434</link>
      <description>Hi,&lt;BR /&gt;row1.c1 -&amp;gt; String&lt;BR /&gt;row1.c2 -&amp;gt; String&lt;BR /&gt;row1.c3 -&amp;gt; Big Decimal&lt;BR /&gt;row1.c4 -&amp;gt; Big Decimal&lt;BR /&gt;Please explain to&amp;nbsp;CONCATENATE in tmap.&lt;BR /&gt;In Oracle&lt;BR /&gt;count(DISTINCT(row1.c1||row1.c2||row1.c3||row1.c4))&lt;BR /&gt;Regards&lt;BR /&gt;Murali R</description>
      <pubDate>Wed, 16 Sep 2015 15:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286812#M60434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-16T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: string and Big Decimal concatenate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286813#M60435</link>
      <description>Hi skr150378,&lt;BR /&gt;Could you please elaborate your use case with an example with input and expected output values? Do you want to turn all your rows into one? Such as,&lt;BR /&gt;A;&lt;BR /&gt;B;&lt;BR /&gt;13.56;&lt;BR /&gt;34.24;&lt;BR /&gt;A;B;13.56;34.24?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 17 Sep 2015 09:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286813#M60435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-17T09:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: string and Big Decimal concatenate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286814#M60436</link>
      <description>Hi,&lt;BR /&gt;Thank for replay.&lt;BR /&gt;Yes.&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;A;B;13.56;34.24&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Murali R</description>
      <pubDate>Fri, 18 Sep 2015 13:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286814#M60436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-18T13:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: string and Big Decimal concatenate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286815#M60437</link>
      <description>Using the example you gave and the expected output, this is how I would do it.....
&lt;BR /&gt;Put the following in the value expression of the output column or put this in a tMap variable and connect the variable to the output column.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;row1.c1+";"+row1.c2+";"+row1.c3.toString()+";"+row1.c4.toString()&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;However, you should understand that if any of those columns hold NULL, you will get issues. The String columns will just return "NULL" in the concatenated String. That might not be too bad. But the BigDecimals will throw an error. So if you can guarantee that there will be no nulls, then the above is the way to do it simply. If the BigDecimals might be null, you can do the following....
&lt;BR /&gt;
&lt;PRE&gt;row1.c1+";"+row1.c2+";"+(row1.c3!=null ?&amp;nbsp;row1.c3.toString() : "NULL")+";"+(row1.c4!=null ?&amp;nbsp;row1.c4.toString() : "NULL")&lt;/PRE&gt;
&lt;BR /&gt;This will result in&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;A;B;13.56;34.24&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;if all columns have values or &amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;A;NULL;13.56;NULL&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;if c2 and c4 are NULL.</description>
      <pubDate>Fri, 18 Sep 2015 14:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/string-and-Big-Decimal-concatenate/m-p/2286815#M60437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-18T14:22:42Z</dc:date>
    </item>
  </channel>
</rss>

