Setting the context file location in the operating system
The initial context load method and the tContextLoad
methods do suffer from having to use a predetermined file location. This exercise shows how it is possible to overcome this via the use of system variables.
Note that this exercise is demonstrated on Microsoft Windows 7; however, it is possible to set and use global environment variables in Talend in any version of Windows, Linux, or Mac OS.
Getting ready
Copy the systemValueContext.txt
file from the cookbook directory/chapter6
to C:\TalendContextDirectory
.
How to do it...
The steps for setting the context file location in the operating system are as follows:
- Run the job, and you will notice that the value of the context variable is set to ...
Get Talend Open Studio Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.