Doubt on Global variable

Everything about Control-M Server installation or setup.
Post Reply
Nancy

Doubt on Global variable

Post by Nancy » 28 Jan 2010 6:49

Hi Chaps,

Is it possible to define an array of global variables in control-M?
If yes then how?

Any advice would be highly appreciated.

Nancy

User avatar
Walty
Nouveau
Nouveau
Posts: 473
Joined: 20 Jan 2006 12:00

Post by Walty » 28 Jan 2010 10:15

Hi,

I think you need to create a script that invokes the utility <ctmvar> for each Global AutoEdit variable you want to set.
Best regards
Walty

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 28 Jan 2010 10:18

yes you can use the autoedit variables setting utility.
ex : ctmvar –action SET –var “%%\TEST_VAR” -varexpr “intitulé”
this variable should be use as a global because of the \

regards
philmalmaison

Nancy

Post by Nancy » 29 Jan 2010 7:55

Thanks phil,

We have a requirement where we have to define an array of variables say for example GLB_JOB_STATUS[1..100], so for example we have 8 jobs running the variables will be used like GLB_JOB_STATUS[1], GLB_JOB_STATUS[2], GLB_JOB_STATUS[3],……,GLB_JOB_STATUS[8] for each jobs, now suppose 2 more jobs are submitted we will have variables as GLB_JOB_STATUS[9] and GLB_JOB_STATUS[10]….
So based on your response I am assuming Control-M supports this.
I hope you are able to understand it, can you confirm this again??

Post Reply