Hello Wolfgang and Michael,
Cheers for your responses ... sounds like a good plan ...
So in my example how would it best to cater for the scenario where
If ....
ENVIRONMENT_NAME = 'ENV1' then
JOBS.WIN.ENV_SWITCH1 runs
ENVIRONMENT_NAME = 'ENV2' then JOBS.WIN.ENV_SWITCH1 does not run
Would it be best having a variable object for each possible value of ENVIRONMENT_NAME? and then when i do a get var i can do something like ..
:SET &RUN_SWITCH# = GET_VAR(&ENVIRONMENT_NAME#.VARA.ENV_SWITCH,&MYNAME#)
or possibly have one variable object and then prefix the key name in that object with the value of the ENVIRONMENT_NAME so the GET_VAR would be ..
:SET &RUN_SWITCH# = GET_VAR(VARA.ENV_SWITCH,
&ENVIRONMENT_NAME#_&MYNAME#)
And the values in the variable object would be:
KEY | VALUE_1 |
ENV1_JOBS.WIN.ENV_SWITCH1 | RUN |
ENV2_JOBS.WIN.ENV_SWITCH1 | NOT |
Again .. hope that makes sense?
Dan