<?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: Need to set Date parameter/context variable for directory to s3 bucket in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348736#M115817</link>
    <description>&lt;P&gt;Not local . they are in a source path will land to s3 bucket&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 04:12:35 GMT</pubDate>
    <dc:creator>NNot_defined1674577304</dc:creator>
    <dc:date>2023-06-08T04:12:35Z</dc:date>
    <item>
      <title>Need to set Date parameter/context variable for directory to s3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348734#M115815</link>
      <description>&lt;P&gt;Hi , Trying to create a job that would copy files from source folder to s3 bucket location. They copy file job is complete but it’s copying all files. I need to have a selection of dates like startDate and endDate in Tac so It can auto import files of chosen dates .Please suggest&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348734#M115815</guid>
      <dc:creator>NNot_defined1674577304</dc:creator>
      <dc:date>2024-11-15T21:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need to set Date parameter/context variable for directory to s3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348735#M115816</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;Are these files on local folder where the job is executed? or copy the files from one S3 bucket to another bucket?&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;</description>
      <pubDate>Thu, 08 Jun 2023 04:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348735#M115816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-08T04:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to set Date parameter/context variable for directory to s3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348736#M115817</link>
      <description>&lt;P&gt;Not local . they are in a source path will land to s3 bucket&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 04:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348736#M115817</guid>
      <dc:creator>NNot_defined1674577304</dc:creator>
      <dc:date>2023-06-08T04:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need to set Date parameter/context variable for directory to s3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348737#M115818</link>
      <description>&lt;P&gt;If the files are on S3 bucket, you can tS3List to iterate each files, there is a global variable eg: ((java.util.Date)globalMap.get("tS3List_1_CURRENT_LASTMODIFIED")) that stores the last modified date of the file, consider using this global variable to filter the files, and only copy these selected files to another S3 bucket. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 04:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348737#M115818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-08T04:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to set Date parameter/context variable for directory to s3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348738#M115819</link>
      <description>&lt;P&gt;Where do I use this variable ? In tfilelist filemask? Do I have to ad any contexts ? I&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 05:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348738#M115819</guid>
      <dc:creator>NNot_defined1674577304</dc:creator>
      <dc:date>2023-06-08T05:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to set Date parameter/context variable for directory to s3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348739#M115820</link>
      <description>&lt;P&gt;Where do I use this variable ? In tfilelist filemask? Do I have to ad any contexts ? Also I need to have selection of any date range&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 05:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348739#M115820</guid>
      <dc:creator>NNot_defined1674577304</dc:creator>
      <dc:date>2023-06-08T05:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need to set Date parameter/context variable for directory to s3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348740#M115821</link>
      <description>&lt;P&gt;You can use this variable on a tJava and check if the date is between a date range. eg:&lt;/P&gt;&lt;P&gt;tS3list--iterate--tJava1---runIf--tS3Copy--oncomponentok--tJava2&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;on tJava1:&lt;/P&gt;&lt;P&gt;java.util.Date currentLastModifiedDate=((java.util.Date)globalMap.get("tS3List_1_CURRENT_LASTMODIFIED"));&lt;/P&gt;&lt;P&gt;if(currentLastModifiedDate.getTime()&amp;gt;=context.startDate.getTime()&amp;amp;&amp;amp;currentLastModifiedDate.getTime()&amp;lt;=context.endDate.getTime()){&lt;/P&gt;&lt;P&gt;context.isCopy=true;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// startDate and endDate are context variables, Date type. &lt;/P&gt;&lt;P&gt;// isCopy is a context variable, boolean type, the default value is false; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the condition of runIf connector as:&lt;/P&gt;&lt;P&gt;context.isCopy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJava2:&lt;/P&gt;&lt;P&gt;context.isCopy=false;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 05:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-set-Date-parameter-context-variable-for-directory-to-s3/m-p/2348740#M115821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-08T05:47:18Z</dc:date>
    </item>
  </channel>
</rss>

