Scheduler Usage
http://scheduler-usage.com/

there is the possibility to send the control-m joblog by mail or in sysout
http://scheduler-usage.com/viewtopic.php?f=29&t=16369
Page 1 of 1

Author:  cuda71 [ 23 Oct 2018 9:54 ]
Post subject:  there is the possibility to send the control-m joblog by mail or in sysout

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

Author:  fyot [ 23 Oct 2018 5:03 ]
Post subject:  Re: there is the possibility to send the control-m joblog by mail or in sysout

Hi

Yes, using ctmlog utility in your script.

Author:  cuda71 [ 23 Oct 2018 6:15 ]
Post subject:  Re: there is the possibility to send the control-m joblog by mail or in sysout

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.

Author:  fyot [ 24 Oct 2018 7:06 ]
Post subject:  Re: there is the possibility to send the control-m joblog by mail or in sysout

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.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/