<?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 Replace null with a particular string for all the columns ( lets say 500) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346110#M113554</link>
    <description>&lt;P&gt;i have to insert records in 500 columns.&lt;/P&gt;&lt;P&gt;I need to replace all the null values with a particular string line 'NA' for all the colums.&lt;/P&gt;&lt;P&gt;We can do it by checking null value for all the columns individually.&lt;/P&gt;&lt;P&gt;Is there any better way to achieve this ?&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 12:33:50 GMT</pubDate>
    <dc:creator>krrohit1256</dc:creator>
    <dc:date>2019-05-31T12:33:50Z</dc:date>
    <item>
      <title>Replace null with a particular string for all the columns ( lets say 500)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346110#M113554</link>
      <description>&lt;P&gt;i have to insert records in 500 columns.&lt;/P&gt;&lt;P&gt;I need to replace all the null values with a particular string line 'NA' for all the colums.&lt;/P&gt;&lt;P&gt;We can do it by checking null value for all the columns individually.&lt;/P&gt;&lt;P&gt;Is there any better way to achieve this ?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 12:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346110#M113554</guid>
      <dc:creator>krrohit1256</dc:creator>
      <dc:date>2019-05-31T12:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null with a particular string for all the columns ( lets say 500)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346111#M113555</link>
      <description>&lt;P&gt;Checking if &lt;STRONG&gt;is null&lt;/STRONG&gt; for every column may yield an unwanted overhead at the processing front...instead you may put in default value for these columns at the tmap expression level either at the input or output as that suits your requirements.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use defaults instead.png" style="width: 507px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5Jy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134697iCF0F9ADAAD557AF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5Jy.png" alt="0683p000009M5Jy.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I Have very limited knowledge on Talend and trying to catch up with this Tool....hopefully that works&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 16:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346111#M113555</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2019-05-31T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null with a particular string for all the columns ( lets say 500)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346112#M113556</link>
      <description>In case you are getting the data from a file, you can first read the whole row, make you transformation before split
&lt;BR /&gt;
&lt;BR /&gt;If I have 500 columns, I will use tjavarow to split to columns.
&lt;BR /&gt;With find replace, i can apply a function to all the columns
&lt;BR /&gt;
&lt;BR /&gt;is not exactly your question, but i don't really see how to do what you are trying to do
&lt;BR /&gt;</description>
      <pubDate>Fri, 31 May 2019 16:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346112#M113556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-31T16:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null with a particular string for all the columns ( lets say 500)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346113#M113557</link>
      <description>&lt;P&gt;The above answers are great, I didn't even know you could have default values in a tMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was going to suggest the same as the second reply, use a tJavaRow component because you can type faster than having to do 500+ clicks on a tMap.&lt;/P&gt;&lt;P&gt;Add&amp;nbsp;tJavaRow, click generate Code, it will be something like this:&lt;/P&gt;&lt;P&gt;output_row.column1 = input_row.column1;&lt;/P&gt;&lt;P&gt;change it to:&lt;/P&gt;&lt;P&gt;output_row.column1 = (input_row.column1 == null) ? "N/A" : input_row.column1;&lt;/P&gt;&lt;P&gt;this says, if column1 is null, then use "N/A" else use column1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 19:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-null-with-a-particular-string-for-all-the-columns-lets/m-p/2346113#M113557</guid>
      <dc:creator>lgati</dc:creator>
      <dc:date>2019-05-31T19:36:12Z</dc:date>
    </item>
  </channel>
</rss>

