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

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

build job - execute with context

1.I have created a parent job which call 10 child job. 
 2.build job - standalone
3. I am using windows environment - so going to use .bat file to execute the job.

My problem is.. I have used 2 context variables - opendate and closedate in all child jobs.
Now while executing I have to pass these 2 parameters.
How can I achieve this?

Labels (2)
3 Replies
Anonymous
Not applicable
Author

You need to define your context variables in your parent as well as the child Jobs.
You can then pass the values explicitly, or you can check "Transmit whole context" on each tRunJob.
You can then pass your parameters at runtime as a command line argument, for example: -
--context_param myString="value"
Anonymous
Not applicable
Author

Thank you so much for your reply. 
I am using windows environment.  so, I am using .bat file for executing.  To change the context value, I am editing the batch file. 
My question now is how can I pass the parameter in command prompt with executable file (to avoid editing .bat file)
example: MyJobName "2016-01-01 00:00:00" "2016-02-01 00:00:00"
Thank you.  Appreciate you for your time and effort for helping me.
Anonymous
Not applicable
Author

At the end of the command line within the BAT file, you'll se the parameter "%*".
This means that any command line parameters that you pass to the BAT file, will be passed on.