Hi Friend,
Please let me know how to make an "AUTO EDIT VARIABLE" in the SET tab of Control-M as " GLOBAL VARIABLE", so i can use the same VARIABLE for any Control-M job i run in a production/Test environment.
Here is an example;
I use a unix script " sh /abc/def/ghi/unixscript.sh %%SCRIPT_ENV " in the general tab of Control-M.
[ NOTE : %%SCRIPT_ENV is a auto edit variable]
Now i need to set a value for %%SCRIPT_ENV in the SET tab of control-M in such a way if this job runs in production then value should be "PRD" and when it runs in TEST environment value should be "TST'.
Thanks,
Mahesh
How to make AUTO EDIT VARIABLE as GLOBAL VARIABLE
- MaheshDude
- Nouveau
- Posts: 28
- Joined: 12 Dec 2011 12:00
How to do the variable global
Hello,
The prefix of the variables has what is defined into the GCS (Global Condition Server), and the variable is GLOBAL
For example:
Defined into GCS ABC
All variables begin with ABC are variables globales.
Best Regards
The prefix of the variables has what is defined into the GCS (Global Condition Server), and the variable is GLOBAL
For example:
Defined into GCS ABC
All variables begin with ABC are variables globales.
Best Regards
- handicrafthome
- Nouveau
- Posts: 1
- Joined: 12 Nov 2013 12:00
- Location: No. 440, Gali Sheesh Mahal, Bazar Sita Ram
- Contact:
well you can use
$GLOBALS — References all variables available in global scope
description:-
An associative array containing references to all variables which are currently defined in the global scope of the script. The variable names are the keys of the array.
chafing dish
$GLOBALS — References all variables available in global scope
description:-
An associative array containing references to all variables which are currently defined in the global scope of the script. The variable names are the keys of the array.
chafing dish