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?