ESP NOTIFY PNODE(COMPLETE) usage
search cancel

ESP NOTIFY PNODE(COMPLETE) usage

book

Article ID: 49056

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How to get notified when a request job completed successfully or bypassed or force completed?

Resolution

You can add NOTIFY PNODE(COMPLETE) to Job definition, it will fire the monitor event in all the 3 scenarios, and monitor variable MNJOBNO and MNSUB# show different values:

APPL NOTIFY
....
JOB JOBX REQUEST      
    NOTIFY PNODE(COMPLETE) EVENT(ESP.JOB_END)   
    ......
    RUN ANY                     
ENDJOB                  

#1 When the JOBX was not requested, it will be bypassed:
 MNJOB(JOBX) MNQUAL() MNAPPL(NOTIFY) MNPOINT(PNODE) MNRDRON(15.26 2025JUL 8)
 MNRDRX(2025070815261958) MNAUTHS(USER1) MNAPPLGEN(4) MNJOBNO(0) MNFULLNAME(JOBX)
 MNSUB#(0) MNJOBTYPE(JOB) MNRC(0) MNCMPC(0) MNCOND(COMPLETE)       

#2 When the JOBX was requested and it will run to end:
MNJOB(JOBX) MNQUAL() MNAPPL(NOTIFY) MNPOINT(PNODE) MNRDRON(15.27 2025JUL 8)
 MNRDRX(2025070815271050) MNAUTHS(USER1) MNAPPLGEN(5) MNJOBNO(61910) MNFULLNAME(JOBX) 
 MNSUB#(1) MNJOBTYPE(JOB) MNRC(0) MNCMPC(0) MNJSTART(15.27 2025JUL 8) MNCOND(COMPLETE) 

#3 When the JOBX was force completed:
  MNJOB(JOBX) MNQUAL() MNAPPL(NOTIFY) MNPOINT(PNODE) MNAUTHS(USER1) MNAPPLGEN(10)
       MNJOBNO(56622) MNFULLNAME(JOBX) MNSUB#(0) MNJOBTYPE(JOB) MNRC(0) MNCMPC(0)
       MNCOND(COMPLETE)      

See Notify Statement: Notify Users or Consoles