<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="security" content="public" /> <meta name="Robots" content="index,follow" /> <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> <meta name="DC.Type" content="concept" /> <meta name="DC.Title" content="Message queues in break mode" /> <meta name="abstract" content="A break-handling program can be called whenever a message of equal or higher severity than the severity code filter arrives on a message queue that is in break delivery mode." /> <meta name="description" content="A break-handling program can be called whenever a message of equal or higher severity than the severity code filter arrives on a message queue that is in break delivery mode." /> <meta name="DC.subject" content="break-handling program, control language (CL), program, message handling, message, example, message handling program" /> <meta name="keywords" content="break-handling program, control language (CL), program, message handling, message, example, message handling program" /> <meta name="DC.Relation" scheme="URI" content="ccmsg.htm" /> <meta name="DC.Relation" scheme="URI" content="bhprg.htm" /> <meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" /> <meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" /> <meta name="DC.Format" content="XHTML" /> <meta name="DC.Identifier" content="msghp" /> <meta name="DC.Language" content="en-us" /> <!-- All rights reserved. Licensed Materials Property of IBM --> <!-- US Government Users Restricted Rights --> <!-- Use, duplication or disclosure restricted by --> <!-- GSA ADP Schedule Contract with IBM Corp. --> <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> <link rel="stylesheet" type="text/css" href="./ic.css" /> <title>Message queues in break mode</title> </head> <body id="msghp"><a name="msghp"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">Message queues in break mode</h1> <div><p>A break-handling program can be called whenever a message of equal or higher severity than the severity code filter arrives on a message queue that is in break delivery mode.</p> <p> To request a break-handling program, you must specify the name of the program and break delivery on the same <span class="cmdname">Change Message Queue (CHGMSGQ)</span> command. The break handling program must receive the message with the <span class="cmdname">Receive Message (RCVMSG</span>) command so the message is marked as handled and the program is not called again. There is an IBM-supplied break-handling program that you can use by default on the <span class="cmdname">Change Message Queue (CHGMSGQ)</span> command. For example:</p> <pre>CHgMSGQ MSGQ(name) DLVRY(*break)</pre> <div class="note"><span class="notetitle">Note:</span> This program cannot open a display file if the interrupted program is waiting for input data from the device display.</div> </div> <div> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="ccmsg.htm" title="You can create or change your own user message queues.">Create or change a message queue</a></div> </div> <div class="reltasks"><strong>Related tasks</strong><br /> <div><a href="bhprg.htm" title="A break-handling program is one that is automatically called when a message arrives at a message queue that is in *BREAK mode.">Use break-handling programs</a></div> </div> </div> </body> </html>