<?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 How to divide the comma separate string into columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-divide-the-comma-separate-string-into-columns/m-p/2344544#M112186</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to split comma separated string from the database to  different column.&lt;/P&gt;&lt;P&gt;The string will have variable number of fields for each type.&lt;/P&gt;&lt;P&gt;I initially extracted all the fields along with the comma separated fields to a tfileoutputdelimited component  to create a CSV output and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current Job:&lt;/P&gt;&lt;P&gt;Input format -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  Output format&lt;/P&gt;&lt;P&gt;test1,test2,”data1,data2,data3”.  -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; test1,test2,data1,data2,data3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now the requirement is to include CSV option in the output file, to enclose  all text by quote and to escape the quote or any special character within the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I turn on this CSV option with the current job the output looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input format -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  Output format&lt;/P&gt;&lt;P&gt;test1,test2,”data1,data2,data3”.  -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; “test1”,”test2”,”data1,data2,data3”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string is represented as a single column in the output csv. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what is expected is &lt;/P&gt;&lt;P&gt;Input format -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  Output format&lt;/P&gt;&lt;P&gt;test1,test2,”data1,data2,data3”.  -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; “test1”,”test2”,”data1”,”data2,”data3”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the tExtractDelimitedfield component , but For that we need to know what is the number of variable columns expected. We can add additional fields and add to field in the output only if it is not null. But this will limit the number of variable columns that can be added in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion on how this can be achieved without having to limit the columns in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my current job structure is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBOuput -&amp;gt;&amp;gt;&amp;gt;&amp;gt; tMap -&amp;gt;&amp;gt;&amp;gt;&amp;gt;  &lt;/P&gt;&lt;P&gt;tFileOutputDelimited&lt;/P&gt;&lt;P&gt;csv option turned off in the &lt;/P&gt;&lt;P&gt;tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. &lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:07:52 GMT</pubDate>
    <dc:creator>anitha_manohar</dc:creator>
    <dc:date>2024-11-16T00:07:52Z</dc:date>
    <item>
      <title>How to divide the comma separate string into columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-divide-the-comma-separate-string-into-columns/m-p/2344544#M112186</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to split comma separated string from the database to  different column.&lt;/P&gt;&lt;P&gt;The string will have variable number of fields for each type.&lt;/P&gt;&lt;P&gt;I initially extracted all the fields along with the comma separated fields to a tfileoutputdelimited component  to create a CSV output and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current Job:&lt;/P&gt;&lt;P&gt;Input format -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  Output format&lt;/P&gt;&lt;P&gt;test1,test2,”data1,data2,data3”.  -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; test1,test2,data1,data2,data3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now the requirement is to include CSV option in the output file, to enclose  all text by quote and to escape the quote or any special character within the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I turn on this CSV option with the current job the output looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input format -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  Output format&lt;/P&gt;&lt;P&gt;test1,test2,”data1,data2,data3”.  -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; “test1”,”test2”,”data1,data2,data3”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string is represented as a single column in the output csv. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what is expected is &lt;/P&gt;&lt;P&gt;Input format -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  Output format&lt;/P&gt;&lt;P&gt;test1,test2,”data1,data2,data3”.  -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; “test1”,”test2”,”data1”,”data2,”data3”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the tExtractDelimitedfield component , but For that we need to know what is the number of variable columns expected. We can add additional fields and add to field in the output only if it is not null. But this will limit the number of variable columns that can be added in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion on how this can be achieved without having to limit the columns in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my current job structure is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBOuput -&amp;gt;&amp;gt;&amp;gt;&amp;gt; tMap -&amp;gt;&amp;gt;&amp;gt;&amp;gt;  &lt;/P&gt;&lt;P&gt;tFileOutputDelimited&lt;/P&gt;&lt;P&gt;csv option turned off in the &lt;/P&gt;&lt;P&gt;tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. &lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-divide-the-comma-separate-string-into-columns/m-p/2344544#M112186</guid>
      <dc:creator>anitha_manohar</dc:creator>
      <dc:date>2024-11-16T00:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide the comma separate string into columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-divide-the-comma-separate-string-into-columns/m-p/2344545#M112187</link>
      <description>&lt;P&gt;@manohar anitha​&amp;nbsp;,check the tNormalize component may be works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://www.tutorialgateway.org/talend-tnormalize/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 02:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-divide-the-comma-separate-string-into-columns/m-p/2344545#M112187</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2021-05-24T02:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide the comma separate string into columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-divide-the-comma-separate-string-into-columns/m-p/2344546#M112188</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to Normalize but that creates multiple entries in the output file.&lt;/P&gt;&lt;P&gt;so tried to write the normalized string to a intermediate output file and then de-normalize the split record based on id to a the finale Output with csv option.&lt;/P&gt;&lt;P&gt;But that causes the same output again with quotes around the de-normalized data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input format -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Output format&lt;/P&gt;&lt;P&gt;test1,test2,”data1,data2,data3”. -&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; “test1”,”test2”,”data1”,”data2,”data3”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option to add csv option after creating a csv file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 06:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-divide-the-comma-separate-string-into-columns/m-p/2344546#M112188</guid>
      <dc:creator>anitha_manohar</dc:creator>
      <dc:date>2021-05-24T06:21:04Z</dc:date>
    </item>
  </channel>
</rss>

