It is currently 26 Jun 2017 10:13


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 28 Jun 2013 7:02 
Offline
Nouveau
Nouveau
User avatar

Joined: 14 Jan 2010 9:00
Posts: 58
I am trying to order a job after a file watcher using a rules file. I can get this to work only if I do not use -ingrouporderid , in which case it orders the job in a new group. I want it to order in the same group the FW rules is running. It appears I am unable to use auto adit variables in a rules file.

This is the rule.

ON_FILEWATCH /media_lib/bmc_scripts/test/jimtest.dat CREATE
THEN
DO_CMD ctmorder -SCHEDTAB JIM_D_TEST1 -JOBNAME CTMORDER_TEST -ODATE ODAT -FORCE Y -ingrouporderid %%GROUP_ORDID
DO_OK
END_ON

This is the error:

-INGROUPORDERID value too long(max=8):'%GROUP_ORDID'

"last" is not an option as there will be more than one JIM_D_TEST1 scheduled at the same time. I despise force-order in the set tab as it creates havoc if someone force orders the scheduling group. Can some one guide me in the right path?


Top
   
 Post subject:
PostPosted: 04 Jul 2013 1:27 
Offline
Nouveau
Nouveau
User avatar

Joined: 13 Jun 2007 8:00
Posts: 317
FW does not interpret any variables within rule file, whether variable from shell or from CTM. The only way is to generate rule file dynamically based on content from the concerned variables.


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

All times are UTC+10:00


Who is online

Users browsing this forum: No registered users and 2 guests


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:  
cron
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