Page 1 of 1

I want to send a mail after the job with job status?

Posted: Tue Dec 11, 2007 11:47 pm
by 4friends
Hi All,

I want to send a mail after the job with job status?
Can u send the details wat r the settings we have to do?

Thanks in advance :!: :!: :!:

Posted: Wed Dec 12, 2007 12:22 am
by manjunathnet
if u want send only job status as success or not, then u can use send mail notification in sequencer platte.

or

if u want send all the information about job status, then u can use dsjob -logsum in excute command and write it to a file, then next pass file as job status.

Posted: Wed Dec 12, 2007 1:21 am
by ray.wurlod
Do you think the email recipient might prefer the email to be in English?
Please use proper English on the DSXchange forum, it is difficult enough for non-English speakers to have to cope with correct English, much less with SMS-style affectations.

Re: I want to send a mail after the job with job status?

Posted: Wed Dec 12, 2007 7:57 am
by sachin1
you can write a after job subroutine, which will track your job for successful execution and send a job status in mail.

you can use

Status_value = DSGetJobInfo (DSJ.ME, DSJ.JOBINTERIMSTATUS)

* Status_value Returns the status of a job after it has run all stages and controlled jobs.

IF Status_value = 2 THEN

send mail with status as 'ok'

end
else
send mail with status as 'fail'

end
you can use DSSendMail Function.

Posted: Wed Dec 12, 2007 8:24 am
by bkumar103
in the sequence job, you have a notification activity stage. Here you have to give details for the reciepent mail id, sender mail id and all.
also one check box is provided to attach the job status log in the mail.