Page 1 of 1

there is the possibility to send the control-m joblog by mail or in sysout

Posted: 23 Oct 2018 9:54
by cuda71
I have a question
there is the possibility to send the control-m joblog by mail or in sysout ?
Then we will see who released the job etc.
Best thanks in advance for a quick answer

Re: there is the possibility to send the control-m joblog by mail or in sysout

Posted: 23 Oct 2018 5:03
by fyot
Hi

Yes, using ctmlog utility in your script.

Re: there is the possibility to send the control-m joblog by mail or in sysout

Posted: 23 Oct 2018 6:15
by cuda71
I thought the job log from a job in the Monitoring where it ended . But thanks for the quick answer.
I'm still testing something about the ( ACTION / Notify / Shout / Destination with a script )
Maybe that's better. I would like the sysout and the log from the job send with an email.
I think the ctmlog utility is ok for research but not for realtime actions.
But I like to be taught better than that.

Re: there is the possibility to send the control-m joblog by mail or in sysout

Posted: 24 Oct 2018 7:06
by fyot
Hi

Well to attach sysout is quite easy in job definition.
Concerning logs, I will suggest following solution :

- create a script to read (with ctmlog) log information, and to send contains in a email.
- put that script somewhere on your CTM server
- add an SHOUT alias in your CTM Server as a Program updating SHOUT Table refering to your script (ex: SENDLOG)
- adding in plus after DO MAIL in your job, a DO SHOUT (notification) to SENDLOG
having orderid (%%ORDERID) in the message.

Script will receive ORDER ID information to read log with ctmlog, and will send an email with contains in the message.