It is currently 22 Oct 2018 8:28


Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 17 Aug 2012 4:31 
Offline
Nouveau
Nouveau
User avatar

Joined: 12 Dec 2011 12:00
Posts: 28
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


Top
   
PostPosted: 20 Aug 2012 6:00 
Offline
Nouveau
Nouveau
User avatar

Joined: 18 May 2008 12:00
Posts: 11
Location: Mexico, D. F.
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


Top
   
 Post subject:
PostPosted: 19 Oct 2012 11:49 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
to define a global varaible in the set panel:

%%\GlobalVarName="value"

Put the "\" sign before the Variable Name.

The global var once defined remain always, so be carefull and put unique variable names.


Top
   
 Post subject:
PostPosted: 12 Nov 2013 8:24 
Offline
Nouveau
Nouveau
User avatar

Joined: 12 Nov 2013 12:00
Posts: 1
Location: No. 440, Gali Sheesh Mahal, Bazar Sita Ram
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved