Anyone know the monmsg msgid for (No active jobs to display)

205 pts.
Tags:
AS/400 Active Jobs
AS/400 jobs
MSGID
WRKACTJOB
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

Answer Wiki

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

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.

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following