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
I want to send a mail after the job with job status?
Moderators: chulett, rschirm, roy
I want to send a mail after the job with job status?
thanks & regards
kk
kk
-
- Participant
- Posts: 5
- Joined: Fri Dec 22, 2006 2:11 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Re: I want to send a mail after the job with job status?
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.
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.