Learn more about the different variables scopes in this tutorial. The code snippets can be used for working with variables in scripts (pre-request, tests). From executing a standard command like ‘ls’ to installing a new software in your Linux box, each activity either uses or alters the environment variable list.
The 'Set Variable' step in a transformation allows you to specify in which job you want to set the variable's scope (i.e. Because the scope of an environment variable is too broad, Kettle variables were introduced to provide a way to define variables that are local to the job in which the variable is set.