How to Retrieve MSGW status in WRKACTJOB in CL variable

115 pts.
Tags:
CL
CL/400
MSGW status
WRKACTJOB
Hi, While Job monitoring if any job goes in MSGW status ... then is there any CL command which retrieves the status (exactly MSGW not *ACTIVE) and display it on the screen. Rather than doing manually job monitoring (Pressing F5 for a long time to look into the status of the job) if a CL can run which retrieves this status and display it.. If anyone can please help me on this.. I have tried a lot but not able to get this...

Answer Wiki

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

Hi,

You could try doing a RCVMSG from the QSYSOPR message queue.

Regards,

Martin Gilbert.

Discuss This Question: 5  Replies

 
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
  • Cool400
    Hi Martin, Can you please elaborate your answer..
    115 pointsBadges:
    report
  • Gilly400
    Hi, You can write a small CL program which runs all the time waiting for a message in QSYSOPR (using RCVMSG). Depending on what sort of message is received your program can respond appropriately - for example it could send a break message to specific users (maybe operators), or could send an e-mail to you. You could code your program to ignore messages that you don't need to act upon. There are a lot of possibilities available. Another option is to add a monitor using ops navigator - I believe you can add a monitor which will only act upon jobs in message wait status. Try searching through the ITKE site, I'm sure this has been covered already. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • harisudhan21
    Hi , yes am using the Ops Navigator as well for the QSYSOPR message queue monitoring, as its very easy and once configured with the message descriptions its just triggers the alert window. There are many pdf's in the IBM sites for how to configure or maybe in the iSeries navigator help itself. Thanks Hari
    1,005 pointsBadges:
    report
  • Cool400
    Thanks for your answer,, It is absolutely working fine.... But to more extent what if I want to display a message only when a specific job which goes into MSGW...
    115 pointsBadges:
    report
  • Gilly400
    Hi, Whichever option you use (CL program with RCVMSG or Ops Navigator), you should be able to specify which job to check for. If you use the RCVMSG then the job name should be contained somewhere in the message - can't remember exactly where, it's been some time since I've done this. Regards, Martin Gilbert.
    23,730 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