what mon msg would i use in my CLP when checking for modules under my SBS?

205 pts.
AS/400 subsystems
I have a clp that checks modules/jobs that run under my subsystems.  I'm not sure what mon message it is giving me since none is shown if the job is not active. Only thing that is shown to me is the wrkactjob screen with (No active jobs to display). I would like for when this event occurs, to send me a message. I have everything in place, script wise, (I THINK) but dont know what mon msg to have it look for so that it will skip over the (**other code**) and alert me to the non active mod.

MOD1:   WRKACTJOB  SBS(mysubsystem) JOB(module)                                   MONMSG     MSGID(????????) EXEC(DO)                                                                                                                (**other code**)          


            SNDMSG  MSG('module is down') +

                        TOUSR(*****) MSGTYPE(*INQ) RPYMSGQ(*****) 


Software/Hardware used:

Answer Wiki

Thanks. We'll let you know when a new response is added.

Ops, I figured it out on my own.

I will used dspjob and not wrkactjob, then monitor for mon msg cpi1157, cpf1069 and cpa0701.

I would like to thank myself.

Discuss This Question: 1  Reply

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TomLiotta
    You can always determine what messages can be monitored for a command by prompting the command, pressing F1=Help, then pressing F2=Extended help. Scroll to the bottom of the extended help to see the list of possible error messages. For WRKACTJOB, you should see a list like this:
     Error messages for WRKACTJOB
         *ESCAPE Messages
         CPF1093     Override of file device type not valid.
         CPF9845     Error occurred while opening file &1.
         CPF9846     Error while processing file &1 in library &2.
         CPF9847     Error occurred while closing file &1 in library &2.
         CPF9850     Override of printer file &1 not allowed.
         CPF9851     Overflow value for file &1 in &2 too small.
         CPF9871     Error occurred while processing.
    As you discovered, the WRKACTJOB command wasn't appropriate. But you could do some additional research if the messages aren't clear by running, for example, DSPMSGD CPF9871 to check the full text of messages that might seem relevant. Tom
    125,585 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: