View previous topic :: View next topic
|
Author |
Message |
vinayakaa
New User
Joined: 20 Mar 2005 Posts: 8 Location: Bangalore
|
|
|
|
Hi,
Is there any parameter in the Notify so that ever user is notified about the job. I mean if we give Notify=&sysuid system notifies only the owner of the job, like that is there any way that every user is notified?
Thanks,
Raju |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If you look closely at the output of your jobs, you will notice that using the NOTIFY=&SYSUID parameter causes the job to invoke the SEND program at the end of the job.
You can also, at any point in the job you wish to, call the SEND program. It is available as a TSO command, i.e. "TSO SEND 'message' USER(userid1 userid2 etc.)". You can get all the details on using the SEND command by entering TSO HELP SEND. See also here:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4C550/1.41?DT=20040721160158
Other options include generating SMTP message streams for email and/or text paging notifications. |
|
Back to top |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
|
|
Hi,
You can send this information to the other user by using the send command through your JCL. In the last step of your job u can code the following step
//STEP010 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
SEND 'COMPILE OK' USER(user1,user2....) LOGON
/*
That will send the message to the user listed in the (), the step u can run as u need by giving cond parameter.
Thanks
Subhasis |
|
Back to top |
|
|
pradipta
New User
Joined: 10 Aug 2005 Posts: 2
|
|
|
|
This sends the other listed user Message, COMPILE OK..however..what we are looking for is the NOTIFY message(message when the job finishes regarding condition code) to be shown(sent) to more than one listed user. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
With two SEND steps and IF/THEN/ELSE or COND CODE checks you could send messages for either zero or non-zero completion code. Anything more than this would probably be too complicated. |
|
Back to top |
|
|
|