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

All questions about Control-M jobs definitions
Post Reply
User avatar
cuda71
Nouveau
Nouveau
Posts: 4
Joined: 30 May 2008 12:00
Location: Switzerland
Contact:

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

Post by cuda71 » 23 Oct 2018 9:54

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

User avatar
fyot
Nouveau
Nouveau
Posts: 734
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

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

Post by fyot » 23 Oct 2018 5:03

Hi

Yes, using ctmlog utility in your script.

User avatar
cuda71
Nouveau
Nouveau
Posts: 4
Joined: 30 May 2008 12:00
Location: Switzerland
Contact:

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

Post by cuda71 » 23 Oct 2018 6:15

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.

User avatar
fyot
Nouveau
Nouveau
Posts: 734
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

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

Post by fyot » 24 Oct 2018 7:06

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.

Post Reply