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

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

Selecting environment when running .bat file

Hi all,

 

I created a job which uses several context variables. I defined all context variables with context groups for a development environment and a production environment. So when I run the job, I can select the development environment or the production environment.

Everything works fine.

Now, I build my job and want to execute the .BAT file using the Windows Task Scheduler. How do I switch between my development and production environment? 

I'm aware that I can set context variables using parameters with the BAT file. Is there also some parameter which I can use to select the environment?

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Just found the solution.

When building the job just select:

0683p000009MZzG.png

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Just found the solution.

When building the job just select:

0683p000009MZzG.png

JohnRMK
Creator II
Creator II

Hello,

 

you can also use the same bat file with the same jar

Just, update the script and change --context=DEV to --context=PRODUCTION. Save the bat file and it will lunch the prod context

manodwhb
Champion II
Champion II

@Belaid Momo​ , yes you can change in .bat/.sh file --context parameter.

 

Thanks,

Manohar