• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » How to share variables between two different Jobs

#1 2007-12-03 14:56:31

man77cz
New member
Registered: 2007-10-08
Posts: 3

How to share variables between two different Jobs

Tags: [context, tos]

Hi all,
I need to pass values between two dependent Job
The job "A" has a tRunJob to launch a job "B".
Thus, A is the father of B.
How I can use variables (not necessarily using context) and pass them between A and B ? I mean that I need to modify and read variables by both jobs, just as global variables.
I tried using the context variables, but, whenever I can pass a value (on the context) from A to B, I am not able to do the opposite..
So, I bet there would be some other solutions.
Thanks

Offline

#2 2007-12-04 03:09:42

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: How to share variables between two different Jobs

Hi

Which version of TOS did you use? I can pass the value from father job to chird job with TOS2.2.2.
Also, you can define the global variable for all the jobs in Contexts in Resipotory viewer.

Best regards

        shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2007-12-04 10:37:30

plegall
Member
Registered: 2006-09-19
Posts: 1586
Website

Re: How to share variables between two different Jobs

As far as I understand your problem, solution is to use a tContextLoad after the tRunJob and in the child job, update somewhere (file, database) the value for the given context variable.

Offline

#4 2011-10-21 05:55:26

Kyaw Lwin Phyo
Member
Registered: 2011-07-12
Posts: 57

Re: How to share variables between two different Jobs

hi, I'm using global contexts for my jobs.
but when i export the jobs each jobs has their own context files.
How I can configure so that all jobs share the same context file?
because when i want to change some values in context, I'll have to change in every job's context now.
I want to change only context and it should set.

any suggestions??

Thank You.

Offline

#5 2011-10-21 06:31:15

djugal
Member
Registered: 2011-06-16
Posts: 229
Website

Re: How to share variables between two different Jobs

1. create a context file of schema key,value as a csv file.
2. goto project settings > implicit context load > select context file made
3. job settings > define context variables in your job which are there in file or DB.
4. now you can get the same value for each job

Regards,
Jugal

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » How to share variables between two different Jobs

Board footer

Powered by FluxBB