<?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: [resolved] Passing variable (context) value from the command line in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239029#M26953</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi all!&lt;BR /&gt;I have a main job with subjobs (in java with TOS 2.4.1).&lt;BR /&gt;One of my subjob read a file.&lt;BR /&gt;I want my batch to take in its parameters in the command line the path of this file.&lt;BR /&gt;I have in the context of my subjob a context variable for this file and in my command line I've added --context_param file="c:\toto.txt".&lt;BR /&gt;But it doesn't work.&lt;BR /&gt;Any ideas?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Help!! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Fri, 18 Jul 2008 09:34:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-07-18T09:34:52Z</dc:date>
    <item>
      <title>[resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239020#M26944</link>
      <description>Is it possible to define variable context value from the command line (by the script generated by the export job in TOS). &lt;BR /&gt;For example &lt;BR /&gt;java -Xms256M -Xmx1024M -cp ../lib/jtds-1.2.jar;../lib/systemRoutines.jar;../lib/userRoutines.jar;.;myjob.jar;../lib; myproject.myjob.MYJOB --context=PROD &lt;BR /&gt;--myvariable='TEST'</description>
      <pubDate>Sat, 16 Nov 2024 14:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239020#M26944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239021#M26945</link>
      <description>hello 
&lt;BR /&gt;yes it is. 
&lt;BR /&gt;Here is an example (with Perl, but Java should be OK) I inserted in a bat file: 
&lt;BR /&gt;"perl" -I"lib" "NPLMATCH%1.job_Jnplmatch.pl" --context=Default --context_param rootDir=%%1 --context_param user=%%2 --context_param password=%%3 --context_param mode=%%4 --context_param backup=%%5 overloads $_context{rootDir} and $_context{user} and $_context{password} and $_context{mode} and $_context{backup}</description>
      <pubDate>Thu, 08 Nov 2007 09:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239021#M26945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-08T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239022#M26946</link>
      <description>Hello,&lt;BR /&gt;I confirm : it's the same in Java.</description>
      <pubDate>Thu, 08 Nov 2007 09:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239022#M26946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-08T09:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239023#M26947</link>
      <description>Very good and thanks for your answers. &lt;BR /&gt;It would be a good idea to add all these options in the documentation, I don't find them.</description>
      <pubDate>Thu, 08 Nov 2007 14:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239023#M26947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-08T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239024#M26948</link>
      <description>What is exactly 
&lt;B&gt;overloads&lt;/B&gt; in your example ?
&lt;BR /&gt;Is it a reserved keywords or just a data ?</description>
      <pubDate>Fri, 09 Nov 2007 09:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239024#M26948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-09T09:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239025#M26949</link>
      <description>Another example in java:
&lt;BR /&gt;
&lt;PRE&gt;--context_param:params_file=/home/stephane/blog/articleContexts/execution/params_prod.csv&lt;/PRE&gt;
&lt;BR /&gt;The ':' between context_param and params_file is due to a bug in 2.2.1 (don't know if we still have the bug)
&lt;BR /&gt;Note that any key can be used instead of ':'</description>
      <pubDate>Wed, 14 Nov 2007 11:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239025#M26949</guid>
      <dc:creator>smallet</dc:creator>
      <dc:date>2007-11-14T11:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239026#M26950</link>
      <description>Hi all!
&lt;BR /&gt;I have a main job with subjobs (in java with TOS 2.4.1).
&lt;BR /&gt;One of my subjob read a file.
&lt;BR /&gt;I want my batch to take in its parameters in the command line the path of this file.
&lt;BR /&gt;I have in the context of my subjob a context variable for this file and in my command line I've added --context_param file="c:\toto.txt".
&lt;BR /&gt;But it doesn't work.
&lt;BR /&gt;Any ideas?</description>
      <pubDate>Thu, 17 Jul 2008 15:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239026#M26950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-17T15:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239027#M26951</link>
      <description>Java uses / instead of \
&lt;BR /&gt;\ is a string escape character which can produce strange effects.
&lt;BR /&gt;Can you try with --context_param file="c:/toto.txt" and see if it works?</description>
      <pubDate>Thu, 17 Jul 2008 16:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239027#M26951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-17T16:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239028#M26952</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Java uses / instead of \&lt;BR /&gt;\ is a string escape character which can produce strange effects.&lt;BR /&gt;Can you try with --context_param file="c:/toto.txt" and see if it works?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks but it's not the problem.
&lt;BR /&gt;The context param is not loaded, I've try with --context_param file="toto.txt" ...</description>
      <pubDate>Thu, 17 Jul 2008 16:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239028#M26952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-17T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239029#M26953</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi all!&lt;BR /&gt;I have a main job with subjobs (in java with TOS 2.4.1).&lt;BR /&gt;One of my subjob read a file.&lt;BR /&gt;I want my batch to take in its parameters in the command line the path of this file.&lt;BR /&gt;I have in the context of my subjob a context variable for this file and in my command line I've added --context_param file="c:\toto.txt".&lt;BR /&gt;But it doesn't work.&lt;BR /&gt;Any ideas?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Help!! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 18 Jul 2008 09:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239029#M26953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-18T09:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239030#M26954</link>
      <description>It's ok, it works.
&lt;BR /&gt;I've passed a parameter to my .bat file an set "--context_param file=%1".</description>
      <pubDate>Tue, 22 Jul 2008 12:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239030#M26954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-22T12:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing variable (context) value from the command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239031#M26955</link>
      <description>&lt;P&gt;Hi Passing the value as a parameter from command line is ok and depicted by many one but how to receive the passed value inside the talend job is pending. Can any one please let us know how to receive the value inside.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 06:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-variable-context-value-from-the-command-line/m-p/2239031#M26955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-30T06:50:54Z</dc:date>
    </item>
  </channel>
</rss>

