<?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: How to create variables in talend. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356125#M121722</link>
    <description>Hi, 
&lt;BR /&gt;Thanks for the reply. Could you please eloborate on the below step. 
&lt;BR /&gt; Inside the tFileList loop mentioned above, set the value of the varTime variable using a tJava component. You'll need to parse the filename to extract the value needed. It should look something like this: globalMap.put("varTime", &amp;lt;&amp;lt;extracted string&amp;gt;&amp;gt;); If you chose to use a context variable, it would look more like this: context.varTime = &amp;lt;&amp;lt;extracted string&amp;gt;&amp;gt;; 
&lt;BR /&gt;I am new to talend and finding it difficult to understand all the components. 
&lt;BR /&gt;Ganga.</description>
    <pubDate>Mon, 19 Apr 2010 11:15:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-04-19T11:15:11Z</dc:date>
    <item>
      <title>How to create variables in talend.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356121#M121718</link>
      <description>Hi,&lt;BR /&gt;here is my problem...&lt;BR /&gt;I am getting one file from source system named with time stamp, based on the time stamp i have to pull the data from data base.&lt;BR /&gt;I could pull the time from File name using the Tfilelist+TIteratetoflow but struckup with how to get the data from database based on this time stamp.&lt;BR /&gt;What i want to do is I want to store this timestamp value in a variable and then want to use this variable in my oracle query.&lt;BR /&gt;EX:if i store like TIME ='2009' and then want to use SQL QUERY like select * from ABC where time = 'TIME' to filter out the records in source query itself.&lt;BR /&gt;Can any one help me out in this...&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Gangadhar.</description>
      <pubDate>Sat, 16 Nov 2024 13:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356121#M121718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create variables in talend.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356122#M121719</link>
      <description>could show a picture of your flow, maybe how you get the 'T'IME' out of your file/database whatever.... i think i got an idea.....</description>
      <pubDate>Thu, 15 Apr 2010 15:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356122#M121719</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-04-15T15:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create variables in talend.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356123#M121720</link>
      <description>Here's how I would do it: 
&lt;BR /&gt;1. Use the tSetGlobalVar component to create a global variable called "varTime" (alternatively you could just create a context variable called "varTime" 
&lt;BR /&gt;2. Inside the tFileList loop mentioned above, set the value of the varTime variable using a tJava component. You'll need to parse the filename to extract the value needed. It should look something like this: globalMap.put("varTime", &amp;lt;&amp;lt;extracted string&amp;gt;&amp;gt;); If you chose to use a context variable, it would look more like this: context.varTime = &amp;lt;&amp;lt;extracted string&amp;gt;&amp;gt;; 
&lt;BR /&gt;3. Now you probably have a tOracleInput (or other database input) inside the tFileList loop. If so, then modify your query like this: select * from ABC where time = '" + ((String)globalMap.get("varTime")) + "'" (use single quotes as needed depending on the database and data types) 
&lt;BR /&gt;Hope this helps!</description>
      <pubDate>Thu, 15 Apr 2010 17:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356123#M121720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-15T17:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create variables in talend.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356124#M121721</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Here's how I would do it:&lt;BR /&gt;1. Use the tSetGlobalVar component to create a global variable called "varTime" (alternatively you could just create a context variable called "varTime"&lt;BR /&gt;2. Inside the tFileList loop mentioned above, set the value of the varTime variable using a tJava component. You'll need to parse the filename to extract the value needed. It should look something like this: globalMap.put("varTime", &amp;lt;&amp;lt;extracted string&amp;gt;&amp;gt;); If you chose to use a context variable, it would look more like this: context.varTime = &amp;lt;&amp;lt;extracted string&amp;gt;&amp;gt;;&lt;BR /&gt;3. Now you probably have a tOracleInput (or other database input) inside the tFileList loop. If so, then modify your query like this: select * from ABC where time = '" + ((String)globalMap.get("varTime")) + "'" (use single quotes as needed depending on the database and data types)&lt;BR /&gt;Hope this helps!&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You've stolen my thougt 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 16 Apr 2010 08:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356124#M121721</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-04-16T08:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create variables in talend.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356125#M121722</link>
      <description>Hi, 
&lt;BR /&gt;Thanks for the reply. Could you please eloborate on the below step. 
&lt;BR /&gt; Inside the tFileList loop mentioned above, set the value of the varTime variable using a tJava component. You'll need to parse the filename to extract the value needed. It should look something like this: globalMap.put("varTime", &amp;lt;&amp;lt;extracted string&amp;gt;&amp;gt;); If you chose to use a context variable, it would look more like this: context.varTime = &amp;lt;&amp;lt;extracted string&amp;gt;&amp;gt;; 
&lt;BR /&gt;I am new to talend and finding it difficult to understand all the components. 
&lt;BR /&gt;Ganga.</description>
      <pubDate>Mon, 19 Apr 2010 11:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-variables-in-talend/m-p/2356125#M121722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-19T11:15:11Z</dc:date>
    </item>
  </channel>
</rss>

