<?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: Output 'input' filename to table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Output-input-filename-to-table/m-p/2364531#M128264</link>
    <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Can I do that and if yes, how?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Of course, there are several ways to finish it. 
&lt;BR /&gt;1) 
&lt;BR /&gt;tFileList_1--iterate--&amp;gt;tFileInputDelimited---&amp;gt;tMap--tMysqlOutput 
&lt;BR /&gt;on tFileList, choose the direcotry where the file locates on, set the file mask as file name. 
&lt;BR /&gt;on tMap, add a new column, set the expression as: ((String)globalMap.get("tFileList_1_CURRENT_FILE")) 
&lt;BR /&gt;2) 
&lt;BR /&gt;tFileProperties---tJavaRow 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tFileInputDelimited---&amp;gt;tMap--tMysqlOutput 
&lt;BR /&gt;on tJavaRow: globalMap.put("filename",input_row.basename); 
&lt;BR /&gt;on tMap, add a new column and set the expression as: (String)globalMap.get("filename") 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Could you also please tell me how to call a stored procedure from mysql?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;See the related 4278 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
    <pubDate>Fri, 20 Nov 2009 02:30:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-20T02:30:03Z</dc:date>
    <item>
      <title>Output 'input' filename to table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-input-filename-to-table/m-p/2364530#M128263</link>
      <description>I using a tfileinputdelimited to take the input from a text file, using t-replace to make some changes to it and using tmysqloutput to output it to a table.&lt;BR /&gt;This is what I want to do, I want to add a column to the table for all the entries which should have the name of the text file i am using in tfileinputdelimited.&lt;BR /&gt;Can I do that and if yes, how?&lt;BR /&gt;Could you also please tell me how to call a stored procedure from mysql?&lt;BR /&gt;Thanks so much</description>
      <pubDate>Sat, 16 Nov 2024 13:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-input-filename-to-table/m-p/2364530#M128263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Output 'input' filename to table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-input-filename-to-table/m-p/2364531#M128264</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Can I do that and if yes, how?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Of course, there are several ways to finish it. 
&lt;BR /&gt;1) 
&lt;BR /&gt;tFileList_1--iterate--&amp;gt;tFileInputDelimited---&amp;gt;tMap--tMysqlOutput 
&lt;BR /&gt;on tFileList, choose the direcotry where the file locates on, set the file mask as file name. 
&lt;BR /&gt;on tMap, add a new column, set the expression as: ((String)globalMap.get("tFileList_1_CURRENT_FILE")) 
&lt;BR /&gt;2) 
&lt;BR /&gt;tFileProperties---tJavaRow 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tFileInputDelimited---&amp;gt;tMap--tMysqlOutput 
&lt;BR /&gt;on tJavaRow: globalMap.put("filename",input_row.basename); 
&lt;BR /&gt;on tMap, add a new column and set the expression as: (String)globalMap.get("filename") 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Could you also please tell me how to call a stored procedure from mysql?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;See the related 4278 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 20 Nov 2009 02:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-input-filename-to-table/m-p/2364531#M128264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-20T02:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Output 'input' filename to table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-input-filename-to-table/m-p/2364532#M128265</link>
      <description>If I go with the first option, that is tfilelist, I would still need to set the file mask as the file name for each job. What if I wanted to automate the complete process, can it in no way pick up the file mask automatically from Fileinputdelimited?</description>
      <pubDate>Fri, 20 Nov 2009 19:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-input-filename-to-table/m-p/2364532#M128265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-20T19:40:48Z</dc:date>
    </item>
  </channel>
</rss>

