<?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: File name with a timestamp in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/File-name-with-a-timestamp/m-p/2282577#M56737</link>
    <description>&lt;P&gt;Using tSetGlobalVar when the job starts, define a global variable to store the current timestamp then reuse it anywhere in your job (because "mm" changes every 60 secondes):&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timestamp.png" style="width: 800px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Wd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127708i1DA504A0FD220830/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Wd.png" alt="0683p000009M7Wd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;In this example, the timestamp global variable is reused in the same&amp;amp;nbsp;tSetGlobalVar to construct the logfile variable (which contains a log filename) but you can reuse anywhere you want such as in tFileXxxxx components.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Aug 2019 12:48:49 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2019-08-10T12:48:49Z</dc:date>
    <item>
      <title>File name with a timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-name-with-a-timestamp/m-p/2282576#M56736</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-left"&gt; 
 &lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt; 
  &lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt; 
   &lt;DIV class="lia-message-body-content"&gt;
     I have one question. 
    &lt;BR /&gt;I want to give my file's name with a time stamp 
    &lt;BR /&gt;It will be like "filename_yyyyMMdd_HHmm.dat" 
    &lt;BR /&gt;But I have to find this file again in the job so, I want to store the "yyyyMMdd_HHmm" value in a context or variable. 
    &lt;BR /&gt;and assign that context or variable to the file name. 
    &lt;BR /&gt;Can you direct me how it can be done??? 
    &lt;BR /&gt;I've tried making a context of type string whose value is TalendDate.formatDate("yyyyMMdd_HHmm",TalendDate.getCurrentDate()) 
    &lt;BR /&gt;But when i run it i got a file not found exception (I'm to create a file not find for the first time). 
    &lt;BR /&gt;and I think the context returns as a string of "TalendDate.formatDate("yyyyMMdd_HHmm",TalendDate.getCurrentDate())" not the actural date time value. 
    &lt;BR /&gt;Thank You. 
   &lt;/DIV&gt; 
  &lt;/DIV&gt; 
  &lt;DIV class="lia-rating-metoo lia-component-me-too lia-component-message-view-widget-me-too"&gt;
    &amp;nbsp; 
  &lt;/DIV&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt; 
&lt;DIV class="lia-quilt-column lia-quilt-column-06 lia-quilt-column-right lia-quilt-column-main-right"&gt; 
 &lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt; 
  &lt;DIV class="LabelsForArticle lia-component-labels lia-component-message-view-widget-labels-with-event"&gt; 
   &lt;DIV class="LabelsList"&gt;
     &amp;nbsp; 
   &lt;/DIV&gt; 
  &lt;/DIV&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-name-with-a-timestamp/m-p/2282576#M56736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: File name with a timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-name-with-a-timestamp/m-p/2282577#M56737</link>
      <description>&lt;P&gt;Using tSetGlobalVar when the job starts, define a global variable to store the current timestamp then reuse it anywhere in your job (because "mm" changes every 60 secondes):&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timestamp.png" style="width: 800px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Wd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127708i1DA504A0FD220830/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Wd.png" alt="0683p000009M7Wd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;In this example, the timestamp global variable is reused in the same&amp;amp;nbsp;tSetGlobalVar to construct the logfile variable (which contains a log filename) but you can reuse anywhere you want such as in tFileXxxxx components.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 12:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-name-with-a-timestamp/m-p/2282577#M56737</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-10T12:48:49Z</dc:date>
    </item>
  </channel>
</rss>

