205 pts.
 Anyone know the monmsg msgid for (No active jobs to display)
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)

 

myjob2:

 

 

 



Software/Hardware used:
as400
ASKED: February 5, 2011  7:33 AM
UPDATED: February 7, 2011  2:17 PM

Answer Wiki:
If you do WRKACTJOB (or any command) then do F4, then do F1, you will find all the messages that you can monitor for listed at the end of the help panel. I do not see one for what you are wanting to do. * Have you tried used the WRKJOB command instead? Then you can monitor for messages.
Last Wiki Answer Submitted:  February 5, 2011  8:24 pm  by  CharlieBrowne   32,785 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,785 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

All available monitorable messages for WRKACTJOB were listed in the discussion under your previous question, what mon msg would i use in my CLP when checking for modules under my SBS? “All available monitorable messages” means that there aren’t any others. If the ones in the list aren’t useful to you, there aren’t any more.

There aren’t a lot of monitorable messages for interactive commands. There isn’t a lot of point to having any since a user will be in control and making decisions.

Don’t use WRKACTJOB if it doesn’t do what you want.

If you need alternatives, tell us what the business problem is.

Tom

 107,735 pts.