<?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: Update a column values from a CSV or text file before inserting/loading it on a table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Update-a-column-values-from-a-CSV-or-text-file-before-inserting/m-p/2271423#M49027</link>
    <description>Pass your data into a tJavaRow or a tMap before to send them to your DB.&lt;BR /&gt;This is how it works with Talend DI.</description>
    <pubDate>Sun, 21 Oct 2018 08:04:00 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-10-21T08:04:00Z</dc:date>
    <item>
      <title>Update a column values from a CSV or text file before inserting/loading it on a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-a-column-values-from-a-CSV-or-text-file-before-inserting/m-p/2271422#M49026</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to ask if it is possible to update a column values before inserting/loading it onto a table?&lt;/P&gt;
&lt;P&gt;Something like in a typical MySQL database trigger, a trigeer before insert&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for each row&lt;BR /&gt;begin&lt;BR /&gt;if (NEW.Col_name = 'values1'l) then&lt;BR /&gt;set NEW.&lt;SPAN&gt;Col_name&amp;nbsp;&lt;/SPAN&gt;= 'values1updated1'; end if;&lt;BR /&gt;&lt;SPAN&gt;if (NEW.Col_name = 'value21'&lt;/SPAN&gt;&lt;SPAN&gt;l) then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set NEW.&lt;/SPAN&gt;&lt;SPAN&gt;Col_name&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;= 'values2updated'; end if;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if (NEW.Col_name = 'values3'&lt;/SPAN&gt;&lt;SPAN&gt;l) then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set NEW.&lt;/SPAN&gt;&lt;SPAN&gt;Col_name&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;= 'values3updated'; end if;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;end&lt;BR /&gt;//&lt;BR /&gt;delimiter ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or is there any different way to do this?; As I have 1 column with 3 different values depends on the action,&amp;nbsp; that should be updated, before placing/inserting /loading the data on the target destination table to avoid "Data Column Values is too long"&amp;nbsp; as I set the standard data types/sizes on the destination table, with a CHAR(1) and the data from the CSV file having CHAR(3).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for any idea or a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-a-column-values-from-a-CSV-or-text-file-before-inserting/m-p/2271422#M49026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update a column values from a CSV or text file before inserting/loading it on a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-a-column-values-from-a-CSV-or-text-file-before-inserting/m-p/2271423#M49027</link>
      <description>Pass your data into a tJavaRow or a tMap before to send them to your DB.&lt;BR /&gt;This is how it works with Talend DI.</description>
      <pubDate>Sun, 21 Oct 2018 08:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-a-column-values-from-a-CSV-or-text-file-before-inserting/m-p/2271423#M49027</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-21T08:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Update a column values from a CSV or text file before inserting/loading it on a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-a-column-values-from-a-CSV-or-text-file-before-inserting/m-p/2271424#M49028</link>
      <description>&lt;P&gt;Thank you Sir &lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/47"&gt;@TRF&lt;/A&gt;! &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Oct 2018 17:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-a-column-values-from-a-CSV-or-text-file-before-inserting/m-p/2271424#M49028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-21T17:29:06Z</dc:date>
    </item>
  </channel>
</rss>

