<?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 Header after creation of file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347808#M115012</link>
    <description>&lt;P&gt;Thanks @Shicong Hong​&amp;nbsp; It worked.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 13:33:54 GMT</pubDate>
    <dc:creator>BA621858188</dc:creator>
    <dc:date>2023-02-23T13:33:54Z</dc:date>
    <item>
      <title>Generate Header after creation of file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347805#M115009</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to generate a custom header after the creation of a file and not before file creation. How can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 12:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347805#M115009</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2023-02-21T12:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Header after creation of file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347806#M115010</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please elaborate your case with an example with input and expected output values?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 08:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347806#M115010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-22T08:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Header after creation of file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347807#M115011</link>
      <description>&lt;P&gt;After the creation of a file, read the file content as a string using tFileInputRaw, pass it to tJavaRow and store the content string as a global variable, eg:&lt;/P&gt;&lt;P&gt;globalMap.put("content",input_row.content.toString());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the next subjob, generate a head string on tFixedFlowInput, pass it to tJavaRow and concatenate the header string with the file content string, eg:&lt;/P&gt;&lt;P&gt;output_row.columnName=input_row.columnName+"\r\n"+(String)globalMap.get("content");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generate a new file using tFileOutputRaw, the job design looks like:&lt;/P&gt;&lt;P&gt;tFileInputRaw--main--tJavaRow&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tFixedFlowInput--main--tJavaRow--tFileOutputRaw.&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>Wed, 22 Feb 2023 08:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347807#M115011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-22T08:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Header after creation of file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347808#M115012</link>
      <description>&lt;P&gt;Thanks @Shicong Hong​&amp;nbsp; It worked.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 13:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Header-after-creation-of-file/m-p/2347808#M115012</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2023-02-23T13:33:54Z</dc:date>
    </item>
  </channel>
</rss>

