Force-job from Steps with var

Some examples running with Control-M and Control-EM database.
Post Reply
User avatar
emuser
Nouveau
Nouveau
Posts: 2
Joined: 29 Apr 2007 12:00

Force-job from Steps with var

Post by emuser » 14 Jan 2013 12:53

Hi:
I need to do a force-job with variable %%JOBNAME. Is possible???

For example:

Steps
-------------------------------------------------
ON Statement = *
Code= COMPSTAT!0
Do Force-job Table= Table1
JOBNAME= %%JOBNAME
ODATE= ODAT

Thank you very much.

User avatar
futre25
Nouveau
Nouveau
Posts: 166
Joined: 11 Aug 2009 12:00

Post by futre25 » 16 Jan 2013 11:06

The Documentation Control-M Parameter Guide described:

Do FORCEJOB

AutoEdit Support
No. An AutoEdit variable or expression cannot be specified as all or part of
the value for this parameter.

User avatar
wrclark
Nouveau
Nouveau
Posts: 12
Joined: 05 Feb 2008 12:00

Post by wrclark » 17 Jan 2013 2:27

We've had some success with functions like this using the Shout facility since you can pass all manner of autoedit variables into a Shout program. So we've developed a script called "ShoutForceJob", and then instead of a "DO FORCEJOB" we've configured the job with a "DO SHOUT" to this ShoutForceJob destination. This allows us to pass in any System or Autoedit variable from the parent job to the forced job.

We have a similar ShoutEmail program which offers enhancements over DO EMAIL.

Its recommended to set your Shout scripts to run asynchronous to avoid slowing down the SL's post processing thread.

HTH. YMMV.
Bill

Post Reply