+ Reply to Thread
Results 1 to 4 of 4

Thread: How to intersept completion message?

  1. #1

    Default How to intersept completion message?

    You can do this by writing a break handler program, once you get the message, then you can do what you want with it. For submitted jobs, there is a parameter on SBMJOB which specifies which message queue to send messages, you can put the message handler over this queue.

  2. #2
    Guest.Visitor Guest

    Default How to intersept completion message?

    Thank you David. Could you be more specific. In addition, my job may run 1 hour or 1 minute.

  3. #3

    Default How to intersept completion message?

    1) Create a break handler program (see example below) 2) Attach the break handler to a message queue: CHGMSGQ your-msgq *BREAK PGM(your-lib/your-pgm) 3) On the SBMJOB, send completion messages to your-msgq SBMJOB MSGQ(your-lib/your-msgq) You will have to modify the break handler program for your needs. See the help on RCVMSG for extra fields, like message type. This example simply intercepts all my messages and sends it to my workstation message line.
    Code

  4. #4
    Guest.Visitor Guest

    Default How to intersept completion message?

    Is it possible to intercept completion message & send my own? (like "Job completed normally" to replace with mine)

+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 11-01-2004, 01:24 PM
  2. Completion messages
    By bflyger@mace-eng.co.nz in forum IBM i (OS/400, i5/OS)
    Replies: 1
    Last Post: 05-04-2001, 01:36 AM
  3. Dropping a message on a message queue from Windows NT
    By Guest.Visitor in forum IBM i (OS/400, i5/OS)
    Replies: 2
    Last Post: 03-15-2001, 09:39 AM
  4. Estimating project completion
    By Guest.Visitor in forum Programming
    Replies: 11
    Last Post: 07-23-1998, 09:01 PM
  5. Retrieve Job Number,Completion Time, etc
    By Guest.Visitor in forum Programming
    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