NOTIFY Parameter Example


Scenario1 - Sending notification to user.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (MTH007),'PAWAN Y',NOTIFY=MTHUSER

Explaining Example -

System sends the job notification to MTHUSER.

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

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP2 JOB (MTH007),'PAWAN Y',NOTIFY=&SYSUID

Explaining Example -

&SYSUID replaces with the userid who submits the job and notify the user about the job status.

Scenario3 - Without NOTIFY.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP2 JOB (MTH007),'PAWAN Y'

Explaining Example -

In the above example: No user gets notify about the job status. We need to checkthe staus by checking the job id in SPOOL.