<?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: Generate empty csv file with header in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generate-empty-csv-file-with-header/m-p/2366459#M129944</link>
    <description>&lt;P&gt;If the header is always the same for this file, why don't you create the CSV file with the header only ?&lt;/P&gt;&lt;P&gt;at the end of your job, you could just "cat" the header and the data.&lt;/P&gt;&lt;P&gt;if no data, then the header will be the first and unique row of the file.&lt;/P&gt;&lt;P&gt;if there are some data, you will get the header and the data below.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 13:56:55 GMT</pubDate>
    <dc:creator>konvertilo</dc:creator>
    <dc:date>2024-01-11T13:56:55Z</dc:date>
    <item>
      <title>Generate empty csv file with header</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-empty-csv-file-with-header/m-p/2366457#M129942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to create an empty CSV file with a header. If there is no data, it generates an empty file without headers. I need a CSV file that contains only the header without any data. The 'Don't generate empty file' option is unchecked. 'Include header' is checked. If there is no data, the file is empty and with no header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-empty-csv-file-with-header/m-p/2366457#M129942</guid>
      <dc:creator>PawelJanus</dc:creator>
      <dc:date>2024-11-15T21:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Generate empty csv file with header</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-empty-csv-file-with-header/m-p/2366458#M129943</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;There is no option on tFileOutputDelimited to create a empty file with header. As a workaround, store the data into memory using tHashOutput, write the header to a new file first, then read the data from memory and write them into the new file if there exist data. eg:&lt;/P&gt;&lt;P&gt;tFixedFlowInput--main--tFileOutputDelimited_1&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tFileInputDeimited--main--tHashOutput_1&lt;/P&gt;&lt;P&gt;|runIf&lt;/P&gt;&lt;P&gt;tHashInput--main--tFileOutputDelimited_2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFixedFlowInput: generate header value.&lt;/P&gt;&lt;P&gt;tFileOutputDelimited_1: create a new file and writhe the header. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf as:&lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("tHashOutput_1_NB_LINE"))&amp;gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 08:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-empty-csv-file-with-header/m-p/2366458#M129943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-11T08:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generate empty csv file with header</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-empty-csv-file-with-header/m-p/2366459#M129944</link>
      <description>&lt;P&gt;If the header is always the same for this file, why don't you create the CSV file with the header only ?&lt;/P&gt;&lt;P&gt;at the end of your job, you could just "cat" the header and the data.&lt;/P&gt;&lt;P&gt;if no data, then the header will be the first and unique row of the file.&lt;/P&gt;&lt;P&gt;if there are some data, you will get the header and the data below.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 13:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-empty-csv-file-with-header/m-p/2366459#M129944</guid>
      <dc:creator>konvertilo</dc:creator>
      <dc:date>2024-01-11T13:56:55Z</dc:date>
    </item>
  </channel>
</rss>

