+ Reply to Thread
Results 1 to 3 of 3

Thread: Message Q monitoring

  1. #1
    Guest.Visitor Guest

    Default Message Q monitoring

    HI there, I am wanting to monitor QSYSOPR MSGQ for specific messages. Then report inhouse program failures, certain system messages etc , to another AS/400. I am OK with the RUNRMTCMD - but not sure how to check QSYSOPR from a program (or whatever). TIA

  2. #2
    Guest.Visitor Guest

    Default Message Q monitoring

    Carl, the process is pretty simple -- change the message queue to have a Break Handling program. From the CL Programming Reference: The following program (PGMA), which consists of only this one procedure, is an example of a break-handling program. PGM PARM(&MSGQ &MSGLIB &MRK) DCL VAR(&MSGQ) TYPE(*CHAR) LEN(10) DCL VAR(&MSGLIB) TYPE(*CHAR) LEN(10) DCL VAR(&MRK) TYPE(*CHAR) LEN(4) DCL VAR(&MSG) TYPE(*CHAR) LEN(75) RCVMSG MSGQ(&MSGLIB/&MSGQ) MSGKEY(&MRK) + MSG(&MSG) . . . ENDPGM After the break-handling program is created, running the following command connects it to the QSYSMSG message queue. CHGMSGQ MSGQ(QSYS/QSYSMSG) DLVRY(*BREAK) PGM(PGMA)

  3. #3
    Guest.Visitor Guest

    Default Message Q monitoring

    Help/Systems market a suite of products that would allow you to do this and allow responding from the remote as/400. You can also set up auto responses for any message you desire. Paul L.

+ Reply to Thread

Similar Threads

  1. monitoring jobq with cl
    By foxn in forum CL
    Replies: 1
    Last Post: 03-09-2005, 01:31 AM
  2. Monitoring an OUTQ from a CL - How to?
    By Guest.Visitor in forum IBM i (OS/400, i5/OS)
    Replies: 3
    Last Post: 07-27-2001, 06:03 AM
  3. Monitoring users
    By Guest.Visitor in forum IBM i (OS/400, i5/OS)
    Replies: 6
    Last Post: 04-06-2001, 10:44 PM
  4. Monitoring Software
    By Guest.Visitor in forum Application Software
    Replies: 6
    Last Post: 11-13-1999, 12:21 PM
  5. Monitoring Lan activity
    By Guest.Visitor in forum Networking
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts