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

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

user input for .bat execution

I have built my job for execution by creating the .bat file. I have a context variable defined for the initial filepath. Is there a way to take an input from the user for this context variable in the .bat execution. 

 

At present this is what i see in the .bat file for the context variable. 

-context=Default %* 

 

Ideally i would like the user to update the .bat context variable with the file path. Is this possible ? If not how should i solve this problem. 

 

Appreciate your input. Thanks!

Labels (2)
1 Solution

Accepted Solutions
David_Beaty
Specialist
Specialist

Hi,

 

You should be able to append onto the invoking command for the bat (or sh) file:

 

talendjob.bat --context_param configurationPath={path to config}

 

Thanks

 

David

View solution in original post

4 Replies
TRF
Champion II
Champion II

What if you define the context variable (lets say filepath for example) of type file and tick the option prompt?
aashish_21nov
Creator
Creator

a solution is in your question only, you achieve this by passing context file path in your context default value

David_Beaty
Specialist
Specialist

Hi,

 

You should be able to append onto the invoking command for the bat (or sh) file:

 

talendjob.bat --context_param configurationPath={path to config}

 

Thanks

 

David

Anonymous
Not applicable
Author

Don't have an option prompt in TOS_BD 6.5.1