<?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: CSV file with random Column position in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/CSV-file-with-random-Column-position/m-p/2258130#M40030</link>
    <description>&lt;P&gt;I have written a tutorial on precisely this here....&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.rilhia.com/tutorials/dynamic-column-order" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/dynamic-column-order&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 20:48:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-06T20:48:04Z</dc:date>
    <item>
      <title>CSV file with random Column position</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-file-with-random-Column-position/m-p/2258129#M40029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to read a CSV file from shared drive and process the columns in the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name of the columns in the file are same but position on the column is getting changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g.&lt;/P&gt;
&lt;P&gt;File1 has columns as "Username","Model","Drive",&lt;/P&gt;
&lt;P&gt;File2 can have&amp;nbsp;"Username","Drive",&amp;nbsp;"Model"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to read the corresponding column and process the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let me know how can i handle this situation.&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 09:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-file-with-random-Column-position/m-p/2258129#M40029</guid>
      <dc:creator>Sanjay5</dc:creator>
      <dc:date>2024-11-16T09:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file with random Column position</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-file-with-random-Column-position/m-p/2258130#M40030</link>
      <description>&lt;P&gt;I have written a tutorial on precisely this here....&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.rilhia.com/tutorials/dynamic-column-order" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/dynamic-column-order&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-file-with-random-Column-position/m-p/2258130#M40030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T20:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file with random Column position</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-file-with-random-Column-position/m-p/2258131#M40031</link>
      <description>&lt;P&gt;Yes, it great tutorial!&lt;/P&gt; 
&lt;P&gt;and I was happy to read it when it was written&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;the only one problem - it really work with only few columns, than start will be more and more complicated (just because a lot of information on screen and a lot of coding)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The more universal solutions:&lt;/P&gt; 
&lt;P&gt;- pack this logic in java routine which loop over any number of columns. Like parse header and sort columns in all other rows by etalon schema (see p.3)&lt;/P&gt; 
&lt;P&gt;- convert csv to json, again by routine or by any&amp;nbsp;of command line tools, then parse JSON and not worry about order (I use this)&lt;/P&gt; 
&lt;P&gt;- and final - the best news :-). All what explained in p.1 - already do the great component from &lt;A title="view all product listings for this vendor" target="_blank"&gt;Jan Lolling&lt;/A&gt;&amp;nbsp;- &amp;nbsp;&lt;A href="https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F544&amp;amp;pi=marketplace%252F1%252Fproducts%252F544%252Fitems%252F2489" target="_self" rel="nofollow noopener noreferrer"&gt;tFileInputTextFlat&lt;/A&gt;&amp;nbsp;on one of project I extract &lt;SPAN&gt;&amp;nbsp;with this component &amp;nbsp;-&amp;nbsp;more than&amp;nbsp;hundreds columns for KPI&lt;/SPAN&gt;&amp;nbsp;f&lt;SPAN&gt;rom source file with 2000+ columns&lt;/SPAN&gt;&amp;nbsp;, work perfect!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 03:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-file-with-random-Column-position/m-p/2258131#M40031</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-06-07T03:38:48Z</dc:date>
    </item>
  </channel>
</rss>

