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



IBM's Command List programming language & Restructured Extended Executor

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

Postby bunny2 » Thu May 14, 2009 8:43 am

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.
bunny2
 
Posts: 8
Joined: Fri Jan 02, 2009 10:31 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Thu May 14, 2009 8:51 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby bunny2 » Thu May 14, 2009 8:57 am

Sorry It happened by mistake.
bunny2
 
Posts: 8
Joined: Fri Jan 02, 2009 10:31 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Thu May 14, 2009 9:24 am

Not to worry - no harm done :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby Bill Dennis » Thu May 14, 2009 9:34 pm

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.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post