<?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: send Environment variable from context in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353513#M119682</link>
    <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Try printing the value using System.out.println(System.getenv("SOURCE_FOLDER")); &amp;nbsp; -- gives the correct results.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;But i am reading all the context values from external file,By Prompting on context variable, &amp;nbsp;So&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;that the context value i am reading in the job in like&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;context.Folder_location only&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;System.out.println(context.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Folder_location);&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I am getting result as&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;System.getenv("SOURCE_FOLDER")+"/filepath/"&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;But how to recognize&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;System.getenv("SOURCE_FOLDER") -- value as a environment variable while sending from context. Because i think it is taking hole as a Object.&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Tue, 22 Jul 2014 13:14:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-22T13:14:39Z</dc:date>
    <item>
      <title>send Environment variable from context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353509#M119678</link>
      <description>Hi, 
&lt;BR /&gt;I am reading &amp;nbsp;csv&amp;nbsp;files from different locations for my etl job,those files are having some common filepath. So common path is stored in an environment variable.Here i consider &amp;nbsp;'SOURCE_FOLDER' as a environment variable. 
&lt;BR /&gt;i am sending &amp;nbsp;a context parameter to my job as&amp;nbsp; 
&lt;BR /&gt;Folder_location=System.getenv("SOURCE_FOLDER")/filepath/ 
&lt;BR /&gt;But i am unable to get the full file path while reading this variable.I am getting&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;System.getenv("SOURCE_FOLDER")/filepath/ while reading context variable . 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;How can i get &amp;nbsp;environment variable value from context variable.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 22 Jul 2014 10:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353509#M119678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T10:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: send Environment variable from context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353510#M119679</link>
      <description>Hi Mani,&lt;BR /&gt;context.Folder_location=System.getenv("SOURCE_FOLDER")/filepath/&lt;BR /&gt;Whether this is not returning you the value to context variable? What is the value of SOURCE_FOLDER in environment variable?&lt;BR /&gt;Thanks&lt;BR /&gt;Vaibhav</description>
      <pubDate>Tue, 22 Jul 2014 12:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353510#M119679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: send Environment variable from context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353511#M119680</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;SOURCE_FOLDER is a environment variable which having my file path like '/home/mani/Documents'.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;While i am reading from my job i want to get the value in the environment variable like '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;/home/mani/Documents/filepath'. But i am getting only&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;System.getenv("SOURCE_FOLDER")/filepath/.&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 22 Jul 2014 12:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353511#M119680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T12:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: send Environment variable from context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353512#M119681</link>
      <description>Can you pl show how you are calling... Actually it is a string concatenation operation, it should be written like
&lt;BR /&gt;context.Folder_location=System.getenv("SOURCE_FOLDER")+"/filepath/"
&lt;BR /&gt;Try printing the value using System.out.println(System.getenv("SOURCE_FOLDER"));
&lt;BR /&gt;and see what value is printed on console... else there is a trouble in calling the environment variables.
&lt;BR /&gt;Thanks
&lt;BR /&gt;vaibhav</description>
      <pubDate>Tue, 22 Jul 2014 12:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353512#M119681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: send Environment variable from context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353513#M119682</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Try printing the value using System.out.println(System.getenv("SOURCE_FOLDER")); &amp;nbsp; -- gives the correct results.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;But i am reading all the context values from external file,By Prompting on context variable, &amp;nbsp;So&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;that the context value i am reading in the job in like&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;context.Folder_location only&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;System.out.println(context.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Folder_location);&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I am getting result as&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;System.getenv("SOURCE_FOLDER")+"/filepath/"&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;But how to recognize&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;System.getenv("SOURCE_FOLDER") -- value as a environment variable while sending from context. Because i think it is taking hole as a Object.&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353513#M119682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: send Environment variable from context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353514#M119683</link>
      <description>I got you....
&lt;BR /&gt;You are trying to send 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;System.getenv("SOURCE_FOLDER") from property file / variable value...&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Context can't recognize it, it will read it as a string... you have to use it in tJava or within the job component, you can get that value directly from environment variable, you need not set it in job level context variables.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Vaibhav&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 22 Jul 2014 14:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353514#M119683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T14:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: send Environment variable from context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353515#M119684</link>
      <description>mani - could you please print the results of you context variable and your env variable - so we can separate out what each part is doing?</description>
      <pubDate>Tue, 22 Jul 2014 14:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-Environment-variable-from-context/m-p/2353515#M119684</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-07-22T14:47:02Z</dc:date>
    </item>
  </channel>
</rss>

