O'Reilly logo

Talend Open Studio Cookbook by Rick Barton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Run the job, and you will notice that the value of the context variable is set to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required