NOTIFY Parameter
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 -
Scenario - Sending notification to user.
//MTHEXMP1 JOB (MTH007),'PAWAN Y',NOTIFY=MTHUSER
System sends the job notification to MTHUSER.