Hello Group,
We are trying to populate a parameter in Control-M with the value of a user defined enviromental variable.
For example:
I have set in windows a variable "demovar" with value "1234"
I would like to set in Control-M %%testvar = %demovar
and then do an echo %%testvar so as to see 1234 in sysout.
So far in sysout I did not get the needed result. Ay ideas?
Regards
Dimitris
PS: If I try the same example with %PATH% it seems to be working...
Enviromental variable as parameter in a job
If ctmserver process was started before you defined the variable I believe that you cannot use it. Yo should restart control-m server after varaible definition.
Have you tried global variables:
[1] % ctmvar
Output:
Parameter -ACTION isn't specified
usage: ctmvar
-ACTION <LOAD>
[ -VAR <Variable> ]
[ -VAREXPR <Variable> ]
[ -FILENAME <Filename> ]
[ -QUIET ]
[ -DEBUG <debug> ]
regards.
Have you tried global variables:
[1] % ctmvar
Output:
Parameter -ACTION isn't specified
usage: ctmvar
-ACTION <LOAD>
[ -VAR <Variable> ]
[ -VAREXPR <Variable> ]
[ -FILENAME <Filename> ]
[ -QUIET ]
[ -DEBUG <debug> ]
regards.
Hello,baralem wrote:If ctmserver process was started before you defined the variable I believe that you cannot use it. Yo should restart control-m server after varaible definition.
Have you tried global variables:
[1] % ctmvar
Output:
Parameter -ACTION isn't specified
usage: ctmvar
-ACTION <LOAD>
[ -VAR <Variable> ]
[ -VAREXPR <Variable> ]
[ -FILENAME <Filename> ]
[ -QUIET ]
[ -DEBUG <debug> ]
regards.
A re-start seems like a possible solution. I will have to try it tommorow.
CTMVAR might be a solution but I would like to utilize the environmental variables because various applications set their values there...