ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbaforzahftrb1.htm

71 lines
4.4 KiB
HTML

<?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="How trigger programs work" />
<meta name="abstract" content="When a user or application issues a change or read operation on a database file that has an associated trigger, the operation calls the appropriate trigger program or programs." />
<meta name="description" content="When a user or application issues a change or read operation on a database file that has an associated trigger, the operation calls the appropriate trigger program or programs." />
<meta name="DC.Relation" scheme="URI" content="rbaforzahftrb.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahftrc.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="rbaforzahftrb1" />
<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>How trigger programs work</title>
</head>
<body id="rbaforzahftrb1"><a name="rbaforzahftrb1"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">How trigger programs work</h1>
<div><p><span><img src="./delta.gif" alt="Start of change" />When a user or application issues
a change or read operation on a database file that has an associated trigger,
the operation calls the appropriate trigger program or programs.<img src="./deltaend.gif" alt="End of change" /></span></p>
<p>The change or read operation passes two parameters to the trigger program,
as described in the following table.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" width="18.71794871794872%" id="d0e26">Parameter</th>
<th valign="top" width="34.87179487179487%" id="d0e28">Description</th>
<th valign="top" width="23.076923076923077%" id="d0e30">Input or output</th>
<th valign="top" width="23.333333333333332%" id="d0e32">Type</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="18.71794871794872%" headers="d0e26 ">1</td>
<td valign="top" width="34.87179487179487%" headers="d0e28 ">Trigger buffer, which contains the information about
the current change operation that is calling this trigger program. </td>
<td valign="top" width="23.076923076923077%" headers="d0e30 ">Input</td>
<td valign="top" width="23.333333333333332%" headers="d0e32 ">CHAR(*)</td>
</tr>
<tr><td valign="top" width="18.71794871794872%" headers="d0e26 ">2</td>
<td valign="top" width="34.87179487179487%" headers="d0e28 ">Trigger buffer length.</td>
<td valign="top" width="23.076923076923077%" headers="d0e30 ">Input</td>
<td valign="top" width="23.333333333333332%" headers="d0e32 ">BINARY(4)</td>
</tr>
</tbody>
</table>
</div>
<p>From these inputs, the trigger program can refer to a copy of the original
or the new records. You must code the trigger program so that it accepts these
parameters.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbaforzahftrb.htm" title="These topics discuss how to create and work with trigger programs.">Create trigger programs</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbaforzahftrc.htm" title="The trigger buffer has two logical sections: a static section and a variable section.">Trigger buffer sections</a></div>
</div>
</div>
</body>
</html>