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: 
_AnonymousUser
Specialist III
Specialist III

Variables type use case

Hi,
I can see at least three kind of variables (There might be even more ?):
-Context variables
-Environnement variables (With component tSetEnv)
-Global variables (With component tSetGlobalVar)

Could someone help me to understand use cases of these three kind of variables ? 
And especially when context variables cannot be used and one of two others has to be used ?
Eric

Labels (2)
1 Reply
vapukov
Master II
Master II

not in Your order
Environment - it is OS level variables, such as ORA_HOME, JAVA_HOME and etc. You can for example define OS variable - RUN_ENV - dev or qual or prod, than Your Talend Job will check this variable and use in Job logic
Global variable - most often used way for:
- store value between component
- save value and etc
Context variables - some time could be used as global, but main goal - define context group (like - dev, prod, qual) and anywhere where it possible - use context variable for PATH, name, connection information and etc
then changing only 1 parameter You can run Job with different set of all parameters 
also You can store context variables values in csv file and change them for compiled Jobs