Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
VBinesh
Contributor
Contributor

how to pass values from a dynamic query in a child job to a parent job

Hi team,

i am new to talend. can you please help me passing values from a dynamic query in a child job to a parent job.

For example, my child job first runs a query such as select count(*) from emp where name like '%a%';.

Next time the query might change to something like select empname,empid from emp where deptno=n;

how to pass the values returned from the child job query to the parent job. i tried with tbufferoutput but it doesnt support dynamic schema. my database is as400

Labels (2)
5 Replies
Anonymous
Not applicable

Hello,

Could you please let us know if this KB article helps for your current scenario?

https://community.talend.com/s/article/Returning-a-value-from-a-child-Job-to-the-parent-Job-DqbEu

Best regards

Sabrina

Anonymous
Not applicable

Hi

The query might be different each time? tBufferOutput does not support dynamic schema, you have to use several tBufferOutput components to map different schema for each query.

 

Regards

Shong

VBinesh
Contributor
Contributor
Author

My use case is with dynamic data​

VBinesh
Contributor
Contributor
Author

From the db input component below is the flow

Dbinput->tlogrow ->tjavarow ​->tbufferoutput and I am getting the values. Now I need to send these query results in a mail. I tried with tjavarow but it displays only last row.

Anonymous
Not applicable

@Vani Binesh​ , if tDBInput run a dynamic query, how you change the query?