send an email when a job abort
Posted: Fri Feb 14, 2003 4:27 am
Hi !
I would like all my jobs to send an email if the execution doesn't finish fine.
I was thinking of doing it by creating a new after job subroutine, in which I would test the status of the job and then send an email if the status isn't "finished OK".
Can you confirm me that when executing the after job subroutine, the job is really finished (that is, the job doesn't wait for the subroutine itself to finish).
Then, what should I use in the subroutine to test the status of the job.
Thanks a lot.
I would like all my jobs to send an email if the execution doesn't finish fine.
I was thinking of doing it by creating a new after job subroutine, in which I would test the status of the job and then send an email if the status isn't "finished OK".
Can you confirm me that when executing the after job subroutine, the job is really finished (that is, the job doesn't wait for the subroutine itself to finish).
Then, what should I use in the subroutine to test the status of the job.
Thanks a lot.