Re: Notify a user if a job ends with non zero RC

2010-03-22 Thread Brian Westerman
There are several programs that will do most of what what you want on the
CBT tape.  

We have one that we give away with our system automation products called
SyzEMAIL, that will send either an email or TSO notify message (or both)
with all of the jobs condition codes, or just individual steps.  You can
provide any ID's you want notified (either with EMAIL or SEND or both),
separately, or you can default to sending only to the person who submitted
the job.

Brian

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-22 Thread Howard Brazee
On 18 Mar 2010 08:22:21 -0700, jim.mcalp...@gmail.com (Jim McAlpine)
wrote:

There are probably a number of ways to achieve the above but I'm looking for
the best way.  Basically if any step in a job ends with a non zero return
code, I want to notify a particular user who will not be the submitting
user.  I've done this in the past but I'm looking for the latest tricks to
achieve this.

Our standard is e-mail:
//IFBAD  IF (TEALF1.UEAA#1.RC NE 0) THEN  
//TEALF2 EXEC UGAB,  (SEND E-MAIL ABOUT FTP FAILURE)  
// MAILFL='UMSMAIL.TEAL.BAD', 
//** DSN OF FILE RECEIVING EMAIL ON PREVIOUS LINE 
// MAILTXT='UMS.DATA.LIB(TEALBAD)'
//** DSN OF FILE CONTAINING EMAIL ADDRESS/TEXT PREVIOUS LINE *
//ENDBAD ENDIF
//IFGOOD IF (TEALF1.UEAA#1.RC EQ 0) THEN  
//TEALF3 EXEC UGAB,  (SEND E-MAIL ABOUT FTP SUCCESS)  
// MAILFL='UMSMAIL.TEAL.GOOD',
//** DSN OF FILE RECEIVING EMAIL ON PREVIOUS LINE 
// MAILTXT='UMS.DATA.LIB(TEALGOOD)'   
//** DSN OF FILE CONTAINING EMAIL ADDRESS/TEXT PREVIOUS LINE *
//ENDGOODENDIF

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Notify a user if a job ends with non zero RC

2010-03-18 Thread Jim McAlpine
There are probably a number of ways to achieve the above but I'm looking for
the best way.  Basically if any step in a job ends with a non zero return
code, I want to notify a particular user who will not be the submitting
user.  I've done this in the past but I'm looking for the latest tricks to
achieve this.

Jim McAlpine

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread Binyamin Dissen
On Thu, 18 Mar 2010 15:21:37 + Jim McAlpine jim.mcalp...@gmail.com
wrote:

:There are probably a number of ways to achieve the above but I'm looking for
:the best way.  Basically if any step in a job ends with a non zero return
:code, I want to notify a particular user who will not be the submitting
:user.  I've done this in the past but I'm looking for the latest tricks to
:achieve this.

A TMP step at the end.

--
Binyamin Dissen bdis...@dissensoftware.com
http://www.dissensoftware.com

Director, Dissen Software, Bar  Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread Mark T. Regan, K8MTR
If you have SMTP running on your system, you can send the user a e-mail 
message. At my site we use XMITIP for this purpose all the time.
 Mark T. Regan, K8MTR, 
CTO1 USNR-Retired (1969-1991) 



- Original Message 
From: Jim McAlpine jim.mcalp...@gmail.com
To: IBM-MAIN@bama.ua.edu
Sent: Thu, March 18, 2010 11:21:37 AM
Subject: Notify a user if a job ends with non zero RC

There are probably a number of ways to achieve the above but I'm looking for
the best way.  Basically if any step in a job ends with a non zero return
code, I want to notify a particular user who will not be the submitting
user.  I've done this in the past but I'm looking for the latest tricks to
achieve this.

Jim McAlpine

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread McKown, John
 -Original Message-
 From: IBM Mainframe Discussion List 
 [mailto:ibm-m...@bama.ua.edu] On Behalf Of Jim McAlpine
 Sent: Thursday, March 18, 2010 10:22 AM
 To: IBM-MAIN@bama.ua.edu
 Subject: Notify a user if a job ends with non zero RC
 
 There are probably a number of ways to achieve the above but 
 I'm looking for
 the best way.  Basically if any step in a job ends with a non 
 zero return
 code, I want to notify a particular user who will not be the 
 submitting
 user.  I've done this in the past but I'm looking for the 
 latest tricks to
 achieve this.
 
 Jim McAlpine

Well, I might look at JES2 exit 28. That is end-of-job exit. The JCT for the 
job is available. The max return code for the job is available in JCTMAXRC if 
bit JCT4RCST is set in JCTFLAG4. JCTLSTAB contains the abend code, if the job 
abended, if that same bit is set, along with JCT4STAB. I.e. if JCT4STAB is set, 
then the job abended and the code is in JCTLSTAB. If it is not set, then the 
max RC is in JCTMAXRC. The use whatever method you like to inform the user (I'd 
likely use MSGCRE to issue a SEND command).

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
john.mck...@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread Luis Andrade
Nevertheless, as XMITIP is written in REXX you can always enhance the
notication with your own code, or include a step to test the completion
codes of each step in a job and send different messages to different users
depending on the results.

see:
http://www.mail-archive.com/ibm-main@bama.ua.edu/msg05588.html
http://www.mail-archive.com/ibm-main@bama.ua.edu/msg05795.html

to get an idea.

Also you may find interesting information here:
http://www.lbdsoftware.com/xmitip.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread Luis Andrade
By the way...

If you in z/OS 1.9 or above;
If you like programming with REXX;

Take a look at the new SDSF interface with REXX...

You can, for instance, check your job output hourly, as you would do with
SDSF panels and check for results... then inform your users if anything goes
wrong... even with a simple TSO SEND.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread Thompson, Steve
-Original Message-
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On
Behalf Of Jim McAlpine
Sent: Thursday, March 18, 2010 10:22 AM
To: IBM-MAIN@bama.ua.edu
Subject: Notify a user if a job ends with non zero RC

There are probably a number of ways to achieve the above but I'm looking
for
the best way.  Basically if any step in a job ends with a non zero
return
code, I want to notify a particular user who will not be the submitting
user.  I've done this in the past but I'm looking for the latest tricks
to
achieve this.

SNIP

If you are running an automated operations product, you should be able
to trigger off the JOBNAME and MSGID. This is a quick way of doing this
without having to write an exit, a lot of REXX code, etc (depending on
which AO product you have -- if any).

Regards,
Steve Thompson

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread Barkow, Eileen
I wrote an email messaging system that triggers off IBM Systems Automation 
trapped msgs- runs clists which invoke
 a proc invoking SMTP with custom msgs and userids as per msg.
However, any triggering off msgs would depend upon the msgs being written to 
the console and I do not think that the IEF142I msg
 containing the condition code could or should be outputted to a systems 
console.

-Original Message-
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Thompson, Steve
Sent: Thursday, March 18, 2010 12:04 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: Notify a user if a job ends with non zero RC

-Original Message-
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On
Behalf Of Jim McAlpine
Sent: Thursday, March 18, 2010 10:22 AM
To: IBM-MAIN@bama.ua.edu
Subject: Notify a user if a job ends with non zero RC

There are probably a number of ways to achieve the above but I'm looking
for
the best way.  Basically if any step in a job ends with a non zero
return
code, I want to notify a particular user who will not be the submitting
user.  I've done this in the past but I'm looking for the latest tricks
to
achieve this.

SNIP

If you are running an automated operations product, you should be able
to trigger off the JOBNAME and MSGID. This is a quick way of doing this
without having to write an exit, a lot of REXX code, etc (depending on
which AO product you have -- if any).

Regards,
Steve Thompson

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread Ted MacNEIL
However, any triggering off msgs would depend upon the msgs being written to 
the console and I do not think that the IEF142I msg containing the condition 
code could or should be outputted to a systems console.

IIRC, and it's been years since I've been involved in automation, you can catch 
the message, process it, and suppress the logging to console.
I do remember, with MPF  NetView (at least), that you could also suppress it 
from SYSLOG, which I always considered a security hole.

-
Too busy driving to stop for gas!

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread Barkow, Eileen
I think that with  IBM SA, the msg has to first be routed to the console in 
order to be trapped.
I have had problems trapping msgs which were being suppressed in the MPF list 
and had to un-supress them. 
 
But even if  IEF142I could be trapped it would obviously have to be done for 
only a limited number of jobs.
There are job scheduling products that keep track of condition codes and 
perform the requested actions.
Or you could write SDSF/TSO routines to examine the job output.

-Original Message-
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Ted MacNEIL
Sent: Thursday, March 18, 2010 1:43 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: Notify a user if a job ends with non zero RC

However, any triggering off msgs would depend upon the msgs being written to 
the console and I do not think that the IEF142I msg containing the condition 
code could or should be outputted to a systems console.

IIRC, and it's been years since I've been involved in automation, you can catch 
the message, process it, and suppress the logging to console.
I do remember, with MPF  NetView (at least), that you could also suppress it 
from SYSLOG, which I always considered a security hole.

-
Too busy driving to stop for gas!

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Notify a user if a job ends with non zero RC

2010-03-18 Thread carlos roberto visconde
You can configure Jes2 and TCP/IP - SMTP to send e-mails.

In Jes2:
  JES2PARM - using a class of impression: OUTCLASS(F)
OUTPUT=PRINT,TRKCELL=NO,OUTDISP=WRITE

execute a Job:
//JOBNAME  JOB---
//STEPNAME EXEC  PGM=IEBGENER
//SYSUT2   DD  SYSOUT=(F,TCPSMTP)
//SYSUT1   DD   *
  helo DOMAIN
  mail from:x...@yy.com
  rcpt to:a...@bb.com
  data
 From: MAIL FROM
 To:   MAIL TO
 subject:  
...
...
//

In TCP/IP

SMTPCONF:
 LOCALCLASS F
 SPOOLPOLLINTERVAL 30
IPMAILERADDRESS NNN.NNN.NNN.NNN

TCPDATA:
NAMESERVER = x.x.x.x
NSPORTADDR 53
RESOLVEVIA TCP  ; or UDP



2010/3/18 Barkow, Eileen ebar...@doitt.nyc.gov

 I think that with  IBM SA, the msg has to first be routed to the console in
 order to be trapped.
 I have had problems trapping msgs which were being suppressed in the MPF
 list and had to un-supress them.

 But even if  IEF142I could be trapped it would obviously have to be done
 for only a limited number of jobs.
 There are job scheduling products that keep track of condition codes and
 perform the requested actions.
 Or you could write SDSF/TSO routines to examine the job output.

 -Original Message-
 From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On
 Behalf Of Ted MacNEIL
 Sent: Thursday, March 18, 2010 1:43 PM
 To: IBM-MAIN@bama.ua.edu
 Subject: Re: Notify a user if a job ends with non zero RC

  However, any triggering off msgs would depend upon the msgs being
 written to the console and I do not think that the IEF142I msg containing
 the condition code could or should be outputted to a systems console.

 IIRC, and it's been years since I've been involved in automation, you can
 catch the message, process it, and suppress the logging to console.
 I do remember, with MPF  NetView (at least), that you could also suppress
 it from SYSLOG, which I always considered a security hole.

 -
 Too busy driving to stop for gas!

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
 Search the archives at http://bama.ua.edu/archives/ibm-main.html

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
 Search the archives at http://bama.ua.edu/archives/ibm-main.html


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html