Running ctmorder from a FW rules file.

Everything about Control-M agents installation or setup.
Post Reply
User avatar
jstarkw
Nouveau
Nouveau
Posts: 58
Joined: 14 Jan 2010 12:00

Running ctmorder from a FW rules file.

Post by jstarkw » 27 Jun 2013 11:02

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?

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 03 Jul 2013 5:27

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.

Post Reply