setting multiple implicit context variable for separate environment

One Star

setting multiple implicit context variable for separate environment

Hi
I've one talend job but want to  run that job in two environments. TEST and PROD

In implicit context variable we have options get credentials from file. Is there any way to set two files for credentials, one for test and one for prod in same job. 

I don't want set values of context variables in context tab of a job.
Highlighted
Community Manager

Re: setting multiple implicit context variable for separate environment

Why not specify the path to the file using a context variable. Then set a path for TEST and one for PROD using that context?
https://help.talend.com/search/all?query=Context+settings&content-lang=en
One Star

Re: setting multiple implicit context variable for separate environment

Hi rhall_2.0
Thanks for your response. 
I'll try this way as well
Tell me one thing that how to integrate implicit context variable tab in job. Because whenever I click on design ground, it shows properties are not available. 
I have added  implicit context variable File > Edit Project properties  Job Settings > Implicit context load.

So whenever I run any job context variable set up at above path comes into play as well.
I want separate  implicit context variable for separate job. But not able find any way to integrate in individual jobs. Checked on view as well.
Cany ou help me ?
Community Manager

Re: setting multiple implicit context variable for separate environment

I see. I think that maybe using a tContextLoad component at the beginning of your jobs may be a better solution for you. It is similar to using the implicit context load, but you can tailor it a little more.
Take a look here: https://help.talend.com/search/all?query=tContextLoad
All you would need would be one context variable set inside your job which would point to the location of context file you are loading in. I have used this method a lot. Give it a try and you will see how useful it is.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog