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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] get the exit code returned by a subjob in a Run If trigger

Hy,
I need some help with the following scenario.
I have 4 jobs that I am running with tRunJob.
One of those jobs is created to do some action in case one of the other jobs are failling.
Because I can not link the other 3 jobs with the fourth one using a trigger OnSubjobError, I thought that it would be ok to link them using a trigger Run If.
All is good until now, but the question is how do I get the exit code returned from the other subjobs to see if the child job should run or not.
Is there a method? I searched in all the documents that I have and a lot of posts from this forum, but I could not find an answer to my question.
Thanks for help!
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

After further reading and searching, I found it.
((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE"))

This line of code can be used to retreive the exit status from a child job.

View solution in original post

1 Reply
Anonymous
Not applicable
Author

After further reading and searching, I found it.
((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE"))

This line of code can be used to retreive the exit status from a child job.