<?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 Loop through .csv at location x &amp; create db tables automatically in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242608#M29366</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dear Talend Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use the most recent version of Talend Open Studio and have about 15 .csv files that we need to import into our DB2 DB.&lt;BR /&gt;Is it possible to build a single job that imports those .csv files (via pre-defined list or just all&lt;BR /&gt;files at location x) and creates a DB2 table or drops and recreates and existing one?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:22:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T06:22:08Z</dc:date>
    <item>
      <title>Loop through .csv at location x &amp; create db tables automatically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242608#M29366</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dear Talend Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use the most recent version of Talend Open Studio and have about 15 .csv files that we need to import into our DB2 DB.&lt;BR /&gt;Is it possible to build a single job that imports those .csv files (via pre-defined list or just all&lt;BR /&gt;files at location x) and creates a DB2 table or drops and recreates and existing one?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242608#M29366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through .csv at location x &amp; create db tables automatically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242609#M29367</link>
      <description>yes it's possible but hard on open studio, there is no dynamic column types.&lt;BR /&gt;so think about generation sql insert in place of getting data.&lt;BR /&gt;&lt;BR /&gt;good luck&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2019 14:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242609#M29367</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-03-11T14:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through .csv at location x &amp; create db tables automatically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242610#M29368</link>
      <description>think about time…&lt;BR /&gt;how many time to do it 15 time?&lt;BR /&gt;time of build and time of debug...</description>
      <pubDate>Mon, 11 Mar 2019 14:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242610#M29368</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-03-11T14:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through .csv at location x &amp; create db tables automatically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242611#M29369</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for the feedback.&lt;BR /&gt;I see.&lt;BR /&gt;I think I made some progress using tFileList, tFileInputDelimited, tLogRow and tDBOutput&lt;BR /&gt;using ((String)globalMap.get("tFileList_1_CURRENT_FILE")) in tDBOutput for the "Table Name".&lt;BR /&gt;However, my ((String)globalMap.get("tFileList_1_CURRENT_FILE")) has usually odd naming and&lt;BR /&gt;file formats, I need to map all my 15 ((String)globalMap.get("tFileList_1_CURRENT_FILE")) to&lt;BR /&gt;DB-naming that I chose. I wonder if tMap could map and create a formated&lt;BR /&gt;_CURRENT_FILE_MAPPED_ or so.&lt;/P&gt; 
&lt;P&gt;The .csv files are small, non has more than 2000 rows.&lt;BR /&gt;Rather than doing 15 jobs I want to have one job that does it dynamic.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 15:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242611#M29369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T15:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through .csv at location x &amp; create db tables automatically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242612#M29370</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LPLsAAO"&gt;@ph12345&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;What about schema of table ? Schema will change with file?
&lt;BR /&gt;If it is same , then you could make it dynamic.
&lt;BR /&gt;
&lt;BR /&gt;Otherwise open studio, you needto create 15 subjob for each diff schema
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2019 18:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242612#M29370</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-11T18:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through .csv at location x &amp; create db tables automatically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242613#M29371</link>
      <description>so you have to dinamicaly build create table script first you are in csv so all your fields are string… Varchar&lt;BR /&gt;you can check the max length of each.&lt;BR /&gt;then create te insert query.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2019 09:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242613#M29371</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-03-12T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through .csv at location x &amp; create db tables automatically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242614#M29372</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks for the replies.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMHzAAO"&gt;@abhishek&lt;/A&gt;KUMAR&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE")) is already the dynamic schema/table name&lt;BR /&gt;that is used for every file (iterated). So I can use that inside&lt;BR /&gt;the tDBOutput "Table Name" Textbox.&lt;BR /&gt;The table is then created if not already existing (that is also a setting).&lt;BR /&gt;However, ((String)globalMap.get("tFileList_1_CURRENT_FILE")) will, in my case, contain&lt;BR /&gt;.csv at the end or others and I need to Map it to a proper, DB table object name.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M39g.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127972i480728AF707EDC42/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M39g.png" alt="0683p000009M39g.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvJj"&gt;example.png&lt;/A&gt;</description>
      <pubDate>Wed, 13 Mar 2019 08:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242614#M29372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-13T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through .csv at location x &amp; create db tables automatically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242615#M29373</link>
      <description>you cannot use this component due to open version.&lt;BR /&gt;there is no dynamic type.&lt;BR /&gt;you have to user tFileInputFullRow and tDBRow.&lt;BR /&gt;and a tmap to convert the string of data to sql create table and sql insert string</description>
      <pubDate>Wed, 13 Mar 2019 08:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-through-csv-at-location-x-create-db-tables-automatically/m-p/2242615#M29373</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-03-13T08:49:58Z</dc:date>
    </item>
  </channel>
</rss>

