Page 1 of 1

Force-job from Steps with var

Posted: 14 Jan 2013 12:53
by emuser
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.

Posted: 16 Jan 2013 11:06
by futre25
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.

Posted: 17 Jan 2013 2:27
by wrclark
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