Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How do I notify all users when I run a job?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
vinayakaa

New User


Joined: 20 Mar 2005
Posts: 9
Location: Bangalore

PostPosted: Tue May 10, 2005 3:07 pm    Post subject: How do I notify all users when I run a job?
Reply with quote

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
View user's profile Send private message
References
PostPosted: Tue May 10, 2005 3:07 pm    Post subject: Re: How do I notify all users when I run a job? Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3101
Location: Charlotte,NC USA

PostPosted: Wed May 11, 2005 4:20 am    Post subject: Re: How do I notify all users when I run a job?
Reply with quote

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:

http://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
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 368
Location: Earth

PostPosted: Mon May 16, 2005 1:22 pm    Post subject: Re: How do I notify all users when I run a job?
Reply with quote

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
View user's profile Send private message
pradipta

New User


Joined: 10 Aug 2005
Posts: 2

PostPosted: Fri May 16, 2008 8:23 pm    Post subject: Reply to: How do I notify all users when I run a job?
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active User


Joined: 17 Aug 2007
Posts: 247
Location: Iowa, USA

PostPosted: Fri May 16, 2008 9:04 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1