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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
rp2018
Creator
Creator

How to get a global variable value from a child job?

I have a main job--->calling a child job---> inside a child job calling another child job.  3 layers of it.

How do I get the 3rd child job global variable information passed to the main job?

 

 

Labels (2)
1 Reply
Anonymous
Not applicable

to pass data from a child job back to the parent you should use the tBufferOutput component in the child job. A common pattern is to use a tFixedFlowInput-->tBufferOutput combination as the last two components in the job to pass context or globalMap variables back to the parent. 

 

the "copy child job schema" button becomes available in the parent job's tRunJob component once you have the tBufferOutput in the child job. This should copy the schema of the child job tBufferOutput to the tRunJob component. You can then connect it to other components in the parent job using the row connector. 

 

One thing to keep in mind is that you should attempt to limit the amount of data you pass from child to parent. If you find you need to pass a large amount, consider refactoring your child job into a joblet.