<?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 [resolved] How to creating a unique file name for temporary files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247457#M32642</link>
    <description>I would like to know if someone knows how to create a filename in a directory that is guaranteed to be unique. 
&lt;BR /&gt;I have several different jobs that use tHashOutput components extensively. In order to handle large data sets, I would like to use temporary files instead of tHash components to preserve memory. The problem I am concerned about is what will happen if two different jobs are running concurrently and both attempt to create a temporary file with the same name. I would like to be able to create a file on the fly without worrying about whether it will conflict with any other jobs. 
&lt;BR /&gt;Has anyone encountered this same issue? 
&lt;BR /&gt;Thanks.</description>
    <pubDate>Sat, 16 Nov 2024 13:17:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:17:21Z</dc:date>
    <item>
      <title>[resolved] How to creating a unique file name for temporary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247457#M32642</link>
      <description>I would like to know if someone knows how to create a filename in a directory that is guaranteed to be unique. 
&lt;BR /&gt;I have several different jobs that use tHashOutput components extensively. In order to handle large data sets, I would like to use temporary files instead of tHash components to preserve memory. The problem I am concerned about is what will happen if two different jobs are running concurrently and both attempt to create a temporary file with the same name. I would like to be able to create a file on the fly without worrying about whether it will conflict with any other jobs. 
&lt;BR /&gt;Has anyone encountered this same issue? 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 13:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247457#M32642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to creating a unique file name for temporary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247458#M32643</link>
      <description>Use variable jobName and timestamp:&lt;BR /&gt;jobName+TalendDate.formatDate("yyyyMMddHHmmss",TalendDate.getCurrentDate())+".log"</description>
      <pubDate>Tue, 14 Sep 2010 19:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247458#M32643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-14T19:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to creating a unique file name for temporary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247459#M32644</link>
      <description>I use the tCreateTemporaryFile component using System.getenv("TMP") as the Directory setting and then use the FILEPATH global variable to get the full path name.&lt;BR /&gt;The great thing is the file is then deleted automatically once the job finishes.</description>
      <pubDate>Wed, 15 Sep 2010 02:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247459#M32644</guid>
      <dc:creator>c0utta</dc:creator>
      <dc:date>2010-09-15T02:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to creating a unique file name for temporary files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247460#M32645</link>
      <description>Thanks!</description>
      <pubDate>Wed, 15 Sep 2010 14:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-creating-a-unique-file-name-for-temporary-files/m-p/2247460#M32645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-15T14:32:05Z</dc:date>
    </item>
  </channel>
</rss>

