Page 1 of 1

REXX Code required for sending a mail when a job abends.

PostPosted: Thu May 14, 2009 8:43 am
by bunny2
Hi All,
Can any one give me the REXX code which will keep a watch on jobs being run,and when an ABEND occurs it will search the sdsf output screen and extract all the information about the abended job and write it down into a dataset. The dataset is then downloaded automatically into the local pc as a word document and email is sent to the oncerned owner with the attachement.

Re: REXX Code required for sending a mail when a job abends.

PostPosted: Thu May 14, 2009 8:51 am
by dick scherrer
Hello,

Please do not post the same topic multiple times. The duplicate has been deleted.

Suggest you speak with your scheduling people about defining a job that would send a notification e-mail when a job abends.

Re: REXX Code required for sending a mail when a job abends.

PostPosted: Thu May 14, 2009 8:57 am
by bunny2
Sorry It happened by mistake.

Re: REXX Code required for sending a mail when a job abends.

PostPosted: Thu May 14, 2009 9:24 am
by dick scherrer
Not to worry - no harm done :)

d

Re: REXX Code required for sending a mail when a job abends.

PostPosted: Thu May 14, 2009 9:34 pm
by Bill Dennis
Rather than defining the required "process", you might get more possible solutions just by stating the problem:
I want to send an email when a job abends.
Most job scheduling packages have this function but I'm assuming this is not available at your site.

1) You can add a step to each job with COND=ONLY on a step to send email via SMTP, but COND=ONLY doesn't run for certain abends.

2) Creating a process to monitor the system log for abends will be quite complex.

We'll see what suggestions other may have.