It is currently 12 Dec 2017 7:10


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 19 Feb 2013 10:32 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Sep 2010 12:00
Posts: 73
Hello,

I am trying to set a variable in my job that is called from CTM. I use these lines of PS, but could really be in any lang.

$exe = "F:\Program Files\BMC Software\CONTROL-M Server\Ctm-server\ctmvar.exe"

&$exe -action set -var "%%\PARM44" -varexpr "UP"


This should call CTMVAR and set its value to "UP". I then use this variable in the body of an DO EMAIL sent by CTM.

I do pass %%PARM44 into my script as an arg.

Any ideas ????????????????

--Goo


Top
   
 Post subject:
PostPosted: 20 Feb 2013 3:28 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Sep 2010 12:00
Posts: 73
I have answered my question on my own last night.

$exe = "F:\Program Files\BMC Software\CONTROL-M Server\Ctm_server\Exe\ctmvar.exe"

&$exe -action set -var "%%\PARM46" -varexpr "DOWN"


This example is in Powershell but could be easily done in DOS too.

Now I can set varibles to any value (<4000 char) and pass back to CTM and use, in my case as a dynamicaly built email body with specific information from my job script. Such as rows, columns, errors, etc.

--Goo


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

All times are UTC+01: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