How to Retrieve MSGW status in WRKACTJOB in CL variable
115 pts.
0
Q:
How to Retrieve MSGW status in WRKACTJOB in CL variable
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...
ASKED: May 6 2009  1:13 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
23625 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button

Hi,

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

Regards,

Martin Gilbert.
Last Answered: May 6 2009  1:33 PM GMT by Gilly400   23625 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Cool400   115 pts.  |   May 6 2009  2:41PM GMT

Hi Martin,

Can you please elaborate your answer..

 

Gilly400   23625 pts.  |   May 6 2009  3:29PM GMT

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.

 

Harisudhan21   490 pts.  |   May 7 2009  3:12PM GMT

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

 

Cool400   115 pts.  |   May 8 2009  1:18PM GMT

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…

 

Gilly400   23625 pts.  |   May 8 2009  1:49PM GMT

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.

 
0