<?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: Export 16 digit value as String in CSV from Database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Export-16-digit-value-as-String-in-CSV-from-Database/m-p/2271421#M49025</link>
    <description>The problem is due to Excel which consider a cell containing digits only as a number. 
&lt;BR /&gt;You can try to concatenate a single quote with the value with the following expression "'"+row1.myField but you will probably have to remove it when you will read the file again with the next job. 
&lt;BR /&gt;Hope this helps.</description>
    <pubDate>Fri, 04 Jan 2019 17:13:14 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2019-01-04T17:13:14Z</dc:date>
    <item>
      <title>Export 16 digit value as String in CSV from Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Export-16-digit-value-as-String-in-CSV-from-Database/m-p/2271420#M49024</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to extract a report from DB in csv.&lt;/P&gt; 
&lt;P&gt;The column in the DB is Varchar and the value is a 12 digit number.&lt;/P&gt; 
&lt;P&gt;After the export the value is treated as number by the excel once we open the file.&lt;/P&gt; 
&lt;P&gt;is it possible to force export the value as String from DB into csv ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;E.g 934581347349,&lt;/P&gt; 
&lt;P&gt;this is exported as number however this is stored as varchar in DB which is displayed as 934581E+11&lt;/P&gt; 
&lt;P&gt;Now if i am trying to update some other column in same csv file and save it then the above value is changed to 934581000000(935E+11),&lt;/P&gt; 
&lt;P&gt;when talend reads this csv file it reads it as 935+11&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Pease suggest any solution to make sure that 934581347349 is exported as 934581347349 and even reimported as 934581347349&lt;/P&gt; 
&lt;P&gt;Note: The export and import file format has to be csv&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Vidya&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 06:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Export-16-digit-value-as-String-in-CSV-from-Database/m-p/2271420#M49024</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2024-11-16T06:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export 16 digit value as String in CSV from Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Export-16-digit-value-as-String-in-CSV-from-Database/m-p/2271421#M49025</link>
      <description>The problem is due to Excel which consider a cell containing digits only as a number. 
&lt;BR /&gt;You can try to concatenate a single quote with the value with the following expression "'"+row1.myField but you will probably have to remove it when you will read the file again with the next job. 
&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Fri, 04 Jan 2019 17:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Export-16-digit-value-as-String-in-CSV-from-Database/m-p/2271421#M49025</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-01-04T17:13:14Z</dc:date>
    </item>
  </channel>
</rss>

