I am doing command wrkactjob sbs(mysbs) job(myjob)
If the job is not active I will receive the work screen with message (No active jobs to display)
Reason: I have a cl that monitors (myjob) in (mysbs). I have the script set to send me an alert if there is no active job found/ or is down...
I just would like to know what mon msgid is being triggered when it returns the value back to my screen as (no active jobs to display)
part of the script:
myjob1: WRKACTJOB SBS(mysbs) JOB(myjob) OUTPUT(*PRINT) MONMSG MSGID(???????) EXEC(GOTO CMDLBL(alert1)) CMPDTA(*NONE) EXEC(GOTO CMDLBL(myjob2)) alert1: SNDMSG MSG('your job is down') + TOUSR(*SYSOPR) MSGTYPE(*INQ) RPYMSGQ(QSYSOPR)
February 5, 2011 7:33 AM
February 7, 2011 2:17 PM