<?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 store the dynamic values in context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367102#M130511</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have source oracle table and there is one column called txn_date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;values are:&lt;/P&gt;&lt;P&gt;txn_date&lt;/P&gt;&lt;P&gt;02-06-2017&lt;/P&gt;&lt;P&gt;04-06-2017&lt;/P&gt;&lt;P&gt;07-06-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;04-06-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement: How to create folder based on date for examples:&lt;/P&gt;&lt;P&gt;folder 1: c;/&lt;SPAN&gt;Txn_dt_&lt;/SPAN&gt;02-06-2017/&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;folder 2 :c:/Txn_dt_04-06-2017/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;folder 3 :c:/Txn_dt_07-06-2017/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But no duplicate folder even if same records with same date arrive.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and is possible to store single context variable&amp;nbsp;&amp;nbsp;to store unique txn_dt values?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shree&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2017 08:34:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-03T08:34:00Z</dc:date>
    <item>
      <title>store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367102#M130511</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have source oracle table and there is one column called txn_date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;values are:&lt;/P&gt;&lt;P&gt;txn_date&lt;/P&gt;&lt;P&gt;02-06-2017&lt;/P&gt;&lt;P&gt;04-06-2017&lt;/P&gt;&lt;P&gt;07-06-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;04-06-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement: How to create folder based on date for examples:&lt;/P&gt;&lt;P&gt;folder 1: c;/&lt;SPAN&gt;Txn_dt_&lt;/SPAN&gt;02-06-2017/&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;folder 2 :c:/Txn_dt_04-06-2017/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;folder 3 :c:/Txn_dt_07-06-2017/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But no duplicate folder even if same records with same date arrive.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and is possible to store single context variable&amp;nbsp;&amp;nbsp;to store unique txn_dt values?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shree&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 08:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367102#M130511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T08:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367103#M130512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can set a context variable value dynamically at runtime (context.yourVariable = "whatYouWant") but usaully for this king of usecase it's preferable to set a global variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your design process should look like:&lt;/P&gt;&lt;P&gt;tOracleInput -&amp;gt; tUniqRow (eliminates doublons on date values) -&amp;gt; tJavaRow (here set the desired global variable) -&amp;gt;&amp;nbsp; tSystem (to create directory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To set the global variable, use the following:&lt;/P&gt;&lt;PRE&gt;globalMap.put("outputFolder", inuput_row.txn_date);&lt;/PRE&gt;&lt;P&gt;As there is not dedicated somponent to create an empty folder, use tSystem for this purpose with the following command:&lt;/P&gt;&lt;PRE&gt;"cmd /c mkdir " + ((String)globalMap.get("outputFolder"))&lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367103#M130512</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-03T09:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367104#M130513</link>
      <description>Hi Shree
&lt;BR /&gt;Do you want to store the source data to file under the folder or just create a folder without writing data?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 03 Aug 2017 09:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367104#M130513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T09:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367105#M130514</link>
      <description>&lt;P&gt;I see where&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&amp;nbsp;is going with the above. If you are intending to add data to the folder, there is no need to worry about this problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) You cannot create a folder twice. Once it exists, it exists&lt;/P&gt; 
&lt;P&gt;2) When you want to write a file to a folder in Talend, you can set the file to create the folder if it does not already exist&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Unless there is some other requirement here, you really do not need to worry about this.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367105#M130514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T09:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367106#M130515</link>
      <description>&lt;P&gt;Hi Shong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sound good, if we can store records as well based on dates. ex: 4th day records-&amp;gt; create folder(04-06-2017)/txn_dt_4th_data.csv. similar to other days as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Means time need to store the date values in context variable in single or mutiple context variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, i am going to use this context variable for some excel file creation based on some columns like gender='M' etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Shree&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367106#M130515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T09:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367107#M130516</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per suggestion whether it will create distinct folder based on date &amp;nbsp;unique values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shree&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367107#M130516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T10:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367108#M130517</link>
      <description>I think I gave you the answer (or not?)</description>
      <pubDate>Thu, 03 Aug 2017 12:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367108#M130517</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-03T12:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367109#M130518</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried as your input.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have facing error while creating folder using tSystem component. I have attached screen shot for references.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more point rather than using tUniquerow , we can override distinct in tOracleInput itself?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error message:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A subdirectory or file null already exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Shree&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsFf"&gt;error.PNG&lt;/A&gt;</description>
      <pubDate>Fri, 04 Aug 2017 05:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367109#M130518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-04T05:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367110#M130519</link>
      <description>The components that create output files have an option "Create directory if does not exist"&lt;BR /&gt;&lt;BR /&gt;Better to use those so that the only directories created are ones with files in them. The component will only create a directory once.</description>
      <pubDate>Fri, 04 Aug 2017 16:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367110#M130519</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-08-04T16:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367111#M130520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still i am facing same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching job for your reference. Could you please check it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shree&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsIn"&gt;mutiple_folder_creation.zip&lt;/A&gt;</description>
      <pubDate>Tue, 08 Aug 2017 05:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367111#M130520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T05:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367112#M130521</link>
      <description>&lt;P&gt;I'm afraid I cannot open your job since I am currently using an older version of Talend. But it is clear that you are trying to create a folder that already exists using the mkdir command. Instead of using tSystem to create directories why not use a tLogRow to print out the directories it is going to create to see how the duplication occurs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note, you are trying to create a directory called "null". This happens in Java when you are concatenating Strings and one of those Strings is null.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to refine your data collection and data validation.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 09:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367112#M130521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T09:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367113#M130522</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still i am getting same error.i have tried with tLog_row, i getting null, How to track. i am attaching screen shot for references.&lt;/P&gt;&lt;P&gt;tJavaRow_1:&lt;/P&gt;&lt;P&gt;globalMap.put("C:/outputFolder", input_row.newColumn1);&lt;BR /&gt;output_row.newColumn2 = input_row.newColumn2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any inputs would be &amp;nbsp;helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shree&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsFv"&gt;error11.PNG&lt;/A&gt;</description>
      <pubDate>Tue, 08 Aug 2017 10:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367113#M130522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T10:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367114#M130523</link>
      <description>&lt;P&gt;You do not appear to be passing the value of input_row.newColumn1 to your output. You are setting your globalMap value (strangely to a key of "C:/outputFolder"....why?), but not passing the value to the output_row.newColumn1 column. Your tLogRow will be displaying this. We will need to see your tSystem configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 10:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367114#M130523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T10:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367115#M130524</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached screen shot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Easy to trace where i am doing wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shree&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsJ7"&gt;2.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsJC"&gt;1.PNG&lt;/A&gt;</description>
      <pubDate>Tue, 08 Aug 2017 12:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367115#M130524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T12:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367116#M130525</link>
      <description>&lt;P&gt;OK, I think I know what is going wrong. But it is difficult to tell for sure, so you will need to try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Disconnect your tJavaRow from your tUniqRow&lt;/P&gt;&lt;P&gt;2) Connect a tFlowToIterate to your tUniqRow&lt;/P&gt;&lt;P&gt;3) Use an iterate link from the tFlowToIterate to your tSystem component&lt;/P&gt;&lt;P&gt;4) In your tSystem component use the following code....&lt;/P&gt;&lt;PRE&gt;"cmd /c mkdir " + ((String)globalMap.get("row2.newColumn1"))&lt;/PRE&gt;&lt;P&gt;FYI the tFlowToIterate works by adding the row to the globalMap using the row name and column name as the key. Each iteration keeps those values for the whole of the flow of the iteration.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 12:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367116#M130525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T12:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367117#M130526</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, able to created directory based on unique txn_date.&lt;/P&gt;
&lt;P&gt;Observation: if directory already exist it through error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;error msg:&amp;nbsp;A subdirectory or file 07-12-0012 already exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Year is not properly value. i will check this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final Requirement:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source records:&lt;/P&gt;
&lt;P&gt;Columns are:&lt;/P&gt;
&lt;P&gt;txn_date, num&amp;nbsp;&lt;/P&gt;
&lt;P&gt;12-06-2017,12&lt;/P&gt;
&lt;P&gt;13-06-2017,24&lt;/P&gt;
&lt;P&gt;12-06-2017,22&lt;/P&gt;
&lt;P&gt;14-06-2017,24&lt;/P&gt;
&lt;P&gt;12-06-2017,13&lt;/P&gt;
&lt;P&gt;13-06-2017,24&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tOracleInput_1 ==&amp;gt; tFileOutputExcel_1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) &amp;nbsp;Create unique txn_dt directory. Ex: &amp;nbsp;&lt;SPAN&gt;12-06-2017,&amp;nbsp;13-06-2017 etc&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;2) Inside that directory create xlsx file. date_wise_load.xlsx ( like&amp;nbsp;&lt;SPAN&gt;12-06-2017)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;3) Load that date records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output File:&lt;SPAN&gt;date_wise_load.xlsx&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;txn_date,num&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;12-06-2017,12&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;12-06-2017,24&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;12-06-2017,13&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) If directory already exist though error and send notification either email. Keep job running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks once again for right direction&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shree&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 05:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367117#M130526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T05:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367118#M130527</link>
      <description>&lt;P&gt;You do not need to do this. Below is a MUCH simpler way of achieving your goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create the folder path String as before&lt;/P&gt;&lt;P&gt;2) Do not use a tSystem, use a tFileTouch component to create a file (you choose the name) in the folder you want to create. Select "Create direcory if does not exist".&lt;/P&gt;&lt;P&gt;3) Delete the file you have just created&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no need to keep track of what folders you have create since this method will not error if you recreate the same folder.....because you cannot do that this way.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367118#M130527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T09:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367119#M130528</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, i am missing some loops now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached screen shots.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check and tell me the flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shree&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsC2"&gt;Folder creation_2.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsGd"&gt;Folder creation_1.PNG&lt;/A&gt;</description>
      <pubDate>Wed, 09 Aug 2017 10:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367119#M130528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T10:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367120#M130529</link>
      <description>&lt;P&gt;At the end of your path you need to add a filename (maybe "del.me"). This will create a file inside the folder. At the moment it is assuming your folder is a file. Once the "del.me" file is there, you can delete the "del.me" file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Not sure what you meant about loops?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 10:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367120#M130529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T10:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: store the dynamic values in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367121#M130530</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using below flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tfiledelimited_1 =&amp;gt; tUniqueRow_1 =&amp;gt; tFlowToIterate_1 =&amp;gt; tFileTouch_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileTouch_1:&lt;/P&gt;&lt;P&gt;Properties:&lt;BR /&gt;File: "C:/Users/DELL PC/Desktop/reports/SOURCE FILE 3/" + ((String)globalMap.get("row2.newColumn2"))&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Checked: create direcotry if does't exist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to create file with empty records. but folder are created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know any changes required?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shree&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 10:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/store-the-dynamic-values-in-context-variable/m-p/2367121#M130530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T10:57:55Z</dc:date>
    </item>
  </channel>
</rss>

