<?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 One CSV file for each row with dynamic CSV file name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/One-CSV-file-for-each-row-with-dynamic-CSV-file-name/m-p/2369244#M132411</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a job which creates one CSV file from a SQL database. They are shipments details in order to provide datas to the carrier software.&lt;/P&gt;&lt;P&gt;Today all the rows from the database are included in the CSV file. The first column in my schema is the shipment id.&lt;/P&gt;&lt;P&gt;Now I need a new out which creates one CSV file for each row and the CSV file name must be the row value of the first column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the dynamic CSV file namee, I created a context variable in my job, and I affected this variable in the file name field of my new tFileOutputDelimited component, it works, I get the value of the context variable as the file name,&amp;nbsp;but I don't know how I should do to set this context value during the job process, I think it must come from an iteration...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the creation of the CSV file for each row, I tried to do that with tFlowToIterate, tIterateToFlow, TForeach... without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards, Tim.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:40:40 GMT</pubDate>
    <dc:creator>timx0ne</dc:creator>
    <dc:date>2024-11-15T23:40:40Z</dc:date>
    <item>
      <title>One CSV file for each row with dynamic CSV file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-CSV-file-for-each-row-with-dynamic-CSV-file-name/m-p/2369244#M132411</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a job which creates one CSV file from a SQL database. They are shipments details in order to provide datas to the carrier software.&lt;/P&gt;&lt;P&gt;Today all the rows from the database are included in the CSV file. The first column in my schema is the shipment id.&lt;/P&gt;&lt;P&gt;Now I need a new out which creates one CSV file for each row and the CSV file name must be the row value of the first column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the dynamic CSV file namee, I created a context variable in my job, and I affected this variable in the file name field of my new tFileOutputDelimited component, it works, I get the value of the context variable as the file name,&amp;nbsp;but I don't know how I should do to set this context value during the job process, I think it must come from an iteration...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the creation of the CSV file for each row, I tried to do that with tFlowToIterate, tIterateToFlow, TForeach... without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards, Tim.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-CSV-file-for-each-row-with-dynamic-CSV-file-name/m-p/2369244#M132411</guid>
      <dc:creator>timx0ne</dc:creator>
      <dc:date>2024-11-15T23:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: One CSV file for each row with dynamic CSV file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-CSV-file-for-each-row-with-dynamic-CSV-file-name/m-p/2369245#M132412</link>
      <description>&lt;P&gt;Hi, @timx0ne,&lt;/P&gt;&lt;P&gt; you can use for example tFlowtoIterate ( check&lt;/P&gt;&lt;P&gt;&lt;I&gt;Use the default (key, value) in global variables then uncheck it then check it again ---&amp;gt; all the variables created by the tFlowToIterate will appear in the outline view )&lt;/I&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;iterate link --&amp;gt; tRowgenerator with all the fields you want with value as the variables of the tFlowToIterate (and 1 as row number)&lt;/P&gt;&lt;P&gt;you have also access of the ship id for each iteration so you can construct your file name on the iteration.&lt;/P&gt;&lt;P&gt;you can acces the variables generated by tFlowToIterate  just by typing the begining of them and press ctrl+space :&lt;/P&gt;&lt;P&gt;eg: if you send a field Ship_ID in the tFlowToIterate&lt;/P&gt;&lt;P&gt;type Shi then ctrl +space and the variable will appear in a dropdown list&lt;/P&gt;&lt;P&gt;Send me Love and kudos&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 07:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-CSV-file-for-each-row-with-dynamic-CSV-file-name/m-p/2369245#M132412</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-01T07:59:44Z</dc:date>
    </item>
  </channel>
</rss>

