Solved! Go to Solution.
Java uses / instead of \
\ is a string escape character which can produce strange effects.
Can you try with --context_param file="c:/toto.txt" and see if it works?
I have a main job with subjobs (in java with TOS 2.4.1).
One of my subjob read a file.
I want my batch to take in its parameters in the command line the path of this file.
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".
But it doesn't work.
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.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema