NOTIFY Parameter


Note! NOTIFY parameter can be coded only at the job level.

NOTIFY is used to notify the user about the job status (either successful or unsuccessful). NOTIFY is a keyword parameter and is optional.

Syntax -

NOTIFY=&SYSUID
or
NOTIFY=USERID
USERID Specifies the userid to notify.
It should be a valid TSO userid.
&SYSUID The system identifies the userid who submits the job and sends the notification.
While running the JOB, the system replaces &SYSUID with the userID who submitted the JOB.
Tip! It is always suggested to use &SYSUID rather than coding user-id.

Examples -


Scenario1 - Sending notification to MTHUSER.

//MTHEXMP1 JOB (MTH007),'PAWAN Y',NOTIFY=MTHUSER

Scenario2 - Sending notification to the user who submits the job.

//MTHEXMP2 JOB (MTH007),'PAWAN Y',NOTIFY=&SYSUID