<?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 Dynamic output Filename for tFileOutputDelimited in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332814#M101656</link>
    <description>Hi There,
&lt;BR /&gt;I have a question regarding dynamic filename creation.
&lt;BR /&gt;I have the following scenario:
&lt;BR /&gt;tMSSQLoutput ------&amp;gt; tMAP --------&amp;gt;tFileOutputDelimited
&lt;BR /&gt;columns in scenarios:
&lt;BR /&gt;name
&lt;BR /&gt;date
&lt;BR /&gt;I want to have the output Filename in the tFileOutputDelimited to be dynamic and it will come from the "columns in scenarios"
&lt;BR /&gt;I want the filename like: d:\sample\name+date.csv
&lt;BR /&gt;
&lt;BR /&gt;thanks in advance</description>
    <pubDate>Sat, 16 Nov 2024 12:21:54 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T12:21:54Z</dc:date>
    <item>
      <title>Dynamic output Filename for tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332814#M101656</link>
      <description>Hi There,
&lt;BR /&gt;I have a question regarding dynamic filename creation.
&lt;BR /&gt;I have the following scenario:
&lt;BR /&gt;tMSSQLoutput ------&amp;gt; tMAP --------&amp;gt;tFileOutputDelimited
&lt;BR /&gt;columns in scenarios:
&lt;BR /&gt;name
&lt;BR /&gt;date
&lt;BR /&gt;I want to have the output Filename in the tFileOutputDelimited to be dynamic and it will come from the "columns in scenarios"
&lt;BR /&gt;I want the filename like: d:\sample\name+date.csv
&lt;BR /&gt;
&lt;BR /&gt;thanks in advance</description>
      <pubDate>Sat, 16 Nov 2024 12:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332814#M101656</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic output Filename for tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332815#M101657</link>
      <description>Only way I can think of is tflowtoiterate, but that would generate a file for each row and that's probably not what you want?</description>
      <pubDate>Fri, 17 Feb 2012 14:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332815#M101657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-17T14:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic output Filename for tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332816#M101658</link>
      <description>Are you using tMSSQLoutput as an input to tMAP... I don't think it is allowed.. 
&lt;BR /&gt;If you are using input component.. 
&lt;BR /&gt;There are few things which u need to take care of.. 
&lt;BR /&gt;1. The no. of records u are retriving from the input component.. if it is one then it is fine..We can use context variable to store name &amp;amp; date value and can add it to the file name.. The same can also be done if the name &amp;amp; date value remains same for all the records. 
&lt;BR /&gt;2. If the records fetched are more and the values are changing then we may have problem.. You need to try it out the same way.. I guess a few no. of file will get created in that case. 
&lt;BR /&gt;In the second case you can decide if you want to have the first records name and date to be the file name.. In that case u can limit the no of input records to be one.. 
&lt;BR /&gt;tMSSQLinput(limit the record to be 1)----&amp;gt;tMAP(save the name &amp;amp; date value to a context variable)--&amp;gt;tlogrow 
&lt;BR /&gt; | 
&lt;BR /&gt; | (on sub job ok) 
&lt;BR /&gt; | 
&lt;BR /&gt; @ 
&lt;BR /&gt;continue your job.. 
&lt;BR /&gt;This should work.. Give a try.. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Yuraj</description>
      <pubDate>Fri, 17 Feb 2012 14:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332816#M101658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-17T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic output Filename for tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332817#M101659</link>
      <description>I there, 
&lt;BR /&gt;OK. I will make it more simpler. 
&lt;BR /&gt;I have a table TABLE1. now, i want to transfer the data in that table to CSV file. 
&lt;BR /&gt;so, this is what i did: 
&lt;BR /&gt;tMSSQLOutput -----------&amp;gt; tMAP ------------------&amp;gt; tFileoutputDelimited 
&lt;BR /&gt;finally, I want the filename of the CSV file to be the name of the TABLE1 column like c:\sample +table column+ output.csv</description>
      <pubDate>Mon, 20 Feb 2012 03:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-output-Filename-for-tFileOutputDelimited/m-p/2332817#M101659</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-02-20T03:24:18Z</dc:date>
    </item>
  </channel>
</rss>

