<?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: Need help on Spliiting a CSV file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-Spliiting-a-CSV-file/m-p/2336908#M105301</link>
    <description>&lt;P&gt;Also if there is any other way to achieve other than using Unix command , would help .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 10:00:40 GMT</pubDate>
    <dc:creator>Rayees</dc:creator>
    <dc:date>2021-04-09T10:00:40Z</dc:date>
    <item>
      <title>Need help on Spliiting a CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-Spliiting-a-CSV-file/m-p/2336907#M105300</link>
      <description>&lt;P&gt;Hi All,&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a job which loads around 140 files using dynamic schema. Now my problem is that one of the csv file which am receiving has more than 1000 columns and oracle has a limitation which does not allow to create a table with more than 1000 columns. So i need to Split that csv file as below mentioned example.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : test.csv&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"request_id","name","location","desc","product","price"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"1","abc","ind","ab@gmail.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rayes","talend","$20000"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"2","xyx","pak"," ","tax","$1000"&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required output files&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"request_id","name","location"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"1","abc","ind"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"2","xyx","pak"&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"request_id","desc","product","price"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"1","ab@gmail.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rayes","talend","$20000"&lt;/P&gt;&lt;P&gt;"2"," ","tax","$1000"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: need request_id column in both the files&amp;nbsp;&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;I have tried Unix cut command using tSystem component to split the file&amp;nbsp;&lt;/P&gt;&lt;P&gt;command :"/bin /bash"&lt;/P&gt;&lt;P&gt;"-c"&lt;/P&gt;&lt;P&gt;"cut -f 1,2-500 -d ',' test.csv &amp;gt; test_1.csv"&lt;/P&gt;&lt;P&gt;"cut -f 1,501- -d ',' test.csv &amp;gt; test_2.csv"&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;the above command splits the file delimiter as comma . but the catch here is that desc column has comma in the value so the cut does not happen properly and get incorrect data in my output files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help to achieve my requirement .&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;Thanks in Advance&amp;nbsp;&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;</description>
      <pubDate>Sat, 16 Nov 2024 00:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-Spliiting-a-CSV-file/m-p/2336907#M105300</guid>
      <dc:creator>Rayees</dc:creator>
      <dc:date>2024-11-16T00:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Spliiting a CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-Spliiting-a-CSV-file/m-p/2336908#M105301</link>
      <description>&lt;P&gt;Also if there is any other way to achieve other than using Unix command , would help .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 10:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-Spliiting-a-CSV-file/m-p/2336908#M105301</guid>
      <dc:creator>Rayees</dc:creator>
      <dc:date>2021-04-09T10:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Spliiting a CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-Spliiting-a-CSV-file/m-p/2336909#M105302</link>
      <description>&lt;P&gt;hi if your desc column have a pattern, you can replace easily the comma with replaceAll method and regex.&lt;/P&gt;&lt;P&gt;send me love and Kudos&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 16:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-Spliiting-a-CSV-file/m-p/2336909#M105302</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-09T16:41:31Z</dc:date>
    </item>
  </channel>
</rss>

