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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Built job not picking up context parameters in the batch file

Hello,

I've got a main job(A) that calls 3 other jobs(B,C,D).  Jobs A, B & D,  all call a global context group called  'Period' which just contains two integer variables called A_StartMonth & B_EndMonth.  When i run the main job A from within Talend, it asks for the A_StartMonth & B_EndMonth parameters which works fine when entered.

The problem is when i 'build' the main job A so that it can be run without opening Talend the batch file doesn't pick up the context parameters that i have edited in the batch file like so :

--context_param A_StartMonth=201407 --context_param B_EndMonth=201509

The job just runs as if no parameters were passed at all.  I don't know why this is happening ?

Any help would be greatly appreciated.

Thanks in advance

Soti

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Soti
Try to edit the batch like this:
%~d0
cd %~dp0
java -Xms256M -Xmx1024M -cp classpath.jar; shong.ajob_0_1.AJob --context=Default --context_param A_StartMonth=201407 --context_param B_EndMonth=201509 %*


Best regards
Shong

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi Soti
Try to edit the batch like this:
%~d0
cd %~dp0
java -Xms256M -Xmx1024M -cp classpath.jar; shong.ajob_0_1.AJob --context=Default --context_param A_StartMonth=201407 --context_param B_EndMonth=201509 %*


Best regards
Shong
Anonymous
Not applicable
Author

Apologies for no replying sooner, I thought i'd already done so. 
Thanks for this solution shong !
Anonymous
Not applicable
Author

hey I want to set the value of  --context=Default at runtime when executing the .bat file from command prompt.


Any help would be greatly appreciated.


Thanks!!