<?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: creating file name based on Table name in Database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305697#M77320</link>
    <description>Hi,&lt;BR /&gt;Thank you for replying my question. may I know, is it possible for me to add current date at the back of the file name?&lt;BR /&gt;E.g :&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;((String) globalMap.get("row1.table_name")) + "_"+ TalendDate.getcurrentDate".csv"&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Is my syntax correct?&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Mon, 09 May 2016 02:56:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-09T02:56:34Z</dc:date>
    <item>
      <title>creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305693#M77316</link>
      <description>Hi,&lt;BR /&gt;I would like to know if Talend can generate File name in CSV format in which the name of the file is based on table name in database.&lt;BR /&gt;For Example.&lt;BR /&gt;Table Name in databse : FACT_COUNTRY --&amp;gt; FACT_COUNTRY.csv&lt;BR /&gt;Is it possible? Can anyone suggest me how it can be done?&lt;BR /&gt;Thanks&lt;BR /&gt;Fadh</description>
      <pubDate>Thu, 05 May 2016 07:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305693#M77316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-05T07:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305694#M77317</link>
      <description>HI,&lt;BR /&gt;Anyone can help me regarding this issue?&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;Regards,&lt;BR /&gt;fadh</description>
      <pubDate>Thu, 05 May 2016 09:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305694#M77317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-05T09:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305695#M77318</link>
      <description>Yes it can be done. &lt;BR /&gt;I made a job that writes out the DLL for all tables and views in a Teradata database into one file per table and view.&lt;BR /&gt;What database are you using?</description>
      <pubDate>Thu, 05 May 2016 18:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305695#M77318</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2016-05-05T18:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305696#M77319</link>
      <description>The basic principle is that you need to determine how you get your database table names.&lt;BR /&gt;For Oracle, this might be "select table_name from user_tables"&lt;BR /&gt;You then feed the output to tFlowTowIterate.&lt;BR /&gt;You haven't said what you want to write to this file, but for the purposes of an example, you could write some arbitrary data using tFixedFlowInput.&lt;BR /&gt;You are then able to specify the file name in your tFileOutputDelimited component.&lt;BR /&gt;So...&lt;BR /&gt;tOracleInput(row1)-&amp;gt;tFlowToIterate(iterate)-&amp;gt;tFixedFlowInput(row2)-&amp;gt;tFileOutputDelimited&lt;BR /&gt;You would set your output file name to: -&lt;BR /&gt;((String) globalMap.get("row1.table_name")) + ".csv"</description>
      <pubDate>Thu, 05 May 2016 18:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305696#M77319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-05T18:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305697#M77320</link>
      <description>Hi,&lt;BR /&gt;Thank you for replying my question. may I know, is it possible for me to add current date at the back of the file name?&lt;BR /&gt;E.g :&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;((String) globalMap.get("row1.table_name")) + "_"+ TalendDate.getcurrentDate".csv"&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Is my syntax correct?&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 09 May 2016 02:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305697#M77320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-09T02:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305698#M77321</link>
      <description>You probably want to do something like&lt;BR /&gt;TalendDate.formatDate("yyyyMMdd", TalendDate.getCurrentDate())</description>
      <pubDate>Mon, 09 May 2016 06:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305698#M77321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-09T06:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305699#M77322</link>
      <description>Yes. How am i going to merge &amp;nbsp;between&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;((String) globalMap.get("row1.table_name")) + ".csv" and&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;TalendDate.formatDate("yyyyMMdd", TalendDate.getCurrentDate())?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;e.g&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;FACT_COUNTRY --&amp;gt; FACT_COUNTRY_20160509.csv&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thanks,&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;fadh&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 10 May 2016 10:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305699#M77322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T10:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305700#M77323</link>
      <description>First you need to run a select statement to get the tablename, you set what is returned to a context variable. Then you call the context variable before you concatenate the date timestamp.</description>
      <pubDate>Tue, 10 May 2016 15:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305700#M77323</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2016-05-10T15:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305701#M77324</link>
      <description>HI,&lt;BR /&gt;Actually I am quite confuse with the select statement.&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"select table_name from user_tables" &amp;nbsp;If I am using MSSQL as my db, and let say my table name is FACT_COUNTRY, hence should I use :&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;select FACT_COUNTRY from&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;FACT_COUNTRY? Its quite weird with my select statement.&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 13 May 2016 03:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305701#M77324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-13T03:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: creating file name based on Table name in Database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305702#M77325</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"select table_name from user_tables"&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;If this statement yields a list of tables names and all you want to do is create a file name for each of those tables, then the actual table FACT_COUNTRY does not come in to it.&lt;BR /&gt;tMSSQLInput(row1)-&amp;gt;tFlowToIterate(OnComponentOK)-&amp;gt;tJava&lt;BR /&gt;You can now get your table name in tJava.&lt;BR /&gt;((String) globalMap.get("row1.table_name"))&lt;BR /&gt;I'm guessing at some point you may want to get data from FACT_COUNTRY; but that is a different question.&lt;BR /&gt;On a side note, shouldn't FACT_COUNTRY actually be DIM_COUNTRY?</description>
      <pubDate>Sun, 15 May 2016 08:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/creating-file-name-based-on-Table-name-in-Database/m-p/2305702#M77325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-15T08:38:41Z</dc:date>
    </item>
  </channel>
</rss>

