Hi guys,
is it possible (CTM v9) to set up e-mail notification when job starts to execute? The business wants to know and be notified when job starts to execute. Sending email when job is completed is not enough.
I tried with echo command "job started" but email is sent only when job finished. I want to send it immediately as job starts.
That particular job starts manualy.
Any ideas?
Notifications when jobs starts to execute
Re: Notifications when jobs starts to execute
Hi
Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.
Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.
Re: Notifications when jobs starts to execute
Hi Franck! Long time no see you.fyot wrote:Hi
Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.
The problem was that %%PRECMD is not suported in Control-M for Oracle Retail Module.
But, it seems my problem is solved. In Control-M 9.0.18.200 and Control-M for Oracle Retail 8.0, BMC introduced "Run pre-exec" and "Run post-exec" check boxes in General tab for Job definition (Oracle retail jobs).
I will check with Oracle team for testing that functionalities.
Best regards,
-
- Nouveau
- Posts: 3
- Joined: 18 Jan 2018 3:18
Re: Notifications when jobs starts to execute
the run pre-exec should work just fine, however, if it does not, another option would be setting up a dummy job right before the needed job to have an on-do action to send the mail as well.Dilbert wrote:Hi Franck! Long time no see you.fyot wrote:Hi
Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.
The problem was that %%PRECMD is not suported in Control-M for Oracle Retail Module.
But, it seems my problem is solved. In Control-M 9.0.18.200 and Control-M for Oracle Retail 8.0, BMC introduced "Run pre-exec" and "Run post-exec" check boxes in General tab for Job definition (Oracle retail jobs).
I will check with Oracle team for testing that functionalities.
Best regards,
Regards,
Re: Notifications when jobs starts to execute
That Dummy job was my solution to customer, but they are against it.Guilherme_HFA wrote:the run pre-exec should work just fine, however, if it does not, another option would be setting up a dummy job right before the needed job to have an on-do action to send the mail as well.Dilbert wrote:Hi Franck! Long time no see you.fyot wrote:Hi
Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.
The problem was that %%PRECMD is not suported in Control-M for Oracle Retail Module.
But, it seems my problem is solved. In Control-M 9.0.18.200 and Control-M for Oracle Retail 8.0, BMC introduced "Run pre-exec" and "Run post-exec" check boxes in General tab for Job definition (Oracle retail jobs).
I will check with Oracle team for testing that functionalities.
Best regards,
Regards,
Anyway, with the new module which supports pre-execution command for Oracle Retail Jobs, now that works.
Old Oracle Retail module just didn't support pre-execution.