How to send notification to multiple users through jcl???

Answer Posted / jin

Just add a step to send message at end of JCL when your step
RC = 0

//STEP1 EXEC PGM=...
...

// IF STEP1.RC = 0 THEN
//STEPNAME EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DDNAME=SYSIN
SEND 'MESSAGE' U(USERID1,USERID2,USERID3) LOGON
// ENDIF

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Must tape dataset definitions include vol=ser specifications?

979


is there any way to execute more than one proc in the same exec statement at the same time..?

2109


How do you submit a job for execution?

638


Explain the function of dd disp parameter?

595


How can values be passed from the job stream to an executable program?

871






For what purpose steplib and joblib are used ?

688


what are the types of abends that occur on job failure? And explain the possible causes of these

1116


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

1995


What are s0c1, s0c4, s0c5, s0c7 and socb?

699


Explain how can an in-stream dataset be terminated?

697


Explain dfsort utility?

669


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

781


Describe the various parameters utilized in the creation of a gdg?

680


What is the function of the dd dcb keyword?

822


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

771