PRECMD under Auto-Edit Varables.

Everything about Control-M Enterprise Manager Server installation or setup.
Post Reply
User avatar
jsp563
Nouveau
Nouveau
Posts: 11
Joined: 19 Aug 2011 12:00

PRECMD under Auto-Edit Varables.

Post by jsp563 » 19 Aug 2011 3:38

I beleieve PRECMD is executed first before the job is executed in control-m.
I would like to know if it is possible to create a prereequsite condition using PRECMD under Autoedit Variables. The prereq condition can be STAT or ODAT.
If that is not possible then can I change the value of Quantitative Resource using PRECMD. For Example if Quantitative Resource "ABC" is defined to 0 can I change it to 10
using PRECMD in conrtrol-m job.

User avatar
Hagar
Nouveau
Nouveau
Posts: 27
Joined: 19 Feb 2009 12:00

Post by Hagar » 25 Aug 2011 9:10

You can create a condition via PRECMD by

%%PRECMD ctmcontb -ADD condition-ok ODAT

ofc you need an agent on the target system

/Hagar

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 25 Aug 2011 11:55

Hi,
So
%%PRECMD ecqrqtab .....

Regards,
Philmalmaison

User avatar
jsp563
Nouveau
Nouveau
Posts: 11
Joined: 19 Aug 2011 12:00

Post by jsp563 » 25 Aug 2011 4:54

Hagar wrote:You can create a condition via PRECMD by

%%PRECMD ctmcontb -ADD condition-ok ODAT

ofc you need an agent on the target system

/Hagar

Hagar
Thanks for the reply . It works fine.
If you don't mind can I ask you if this information is available in control-m manuals as I do have them.
Once again thanks for the reply.

Post Reply